From 3fa6a3c5fca619e97ea4a648a6e96e806d764e7a Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 19 May 2017 16:18:21 +0200 Subject: [PATCH] formatting adjusted --- defaults/main.yml | 10 ---------- handlers/main.yml | 1 - tasks/config.yml | 2 +- tasks/install.yml | 3 +-- vars/os_Debian.yml | 1 - vars/os_RedHat.yml | 1 - 6 files changed, 2 insertions(+), 16 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 25bf09e..55b3905 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -15,16 +15,6 @@ iptables_default_tail: | -A FORWARD -j REJECT iptables_custom_rules: [] -# Example: -# iptables_custom_rules: -# - name: open_port_12345 # 'iptables_custom_rules_' will be prepended to this -# rules: '-A INPUT -p tcp --dport 12345 -j ACCEPT' -# state: present -# weight: 40 -# ipversion: 4 -# table: filter -# -# NOTE: 'name', 'rules' and 'state' are required, others are optional. # By default this role deletes all iptables rules which are not managed by Ansible. # Set this to 'yes', if you want the role to keep unmanaged rules. diff --git a/handlers/main.yml b/handlers/main.yml index d8bdf76..f719843 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,5 +1,4 @@ --- - - name: restart iptables shell: sleep 2 && systemctl restart iptables async: 1 diff --git a/tasks/config.yml b/tasks/config.yml index 1885d21..c21bb2a 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -1,5 +1,5 @@ --- -- name: enable iptables service +- name: Enable iptables service service: name: iptables enabled: yes diff --git a/tasks/install.yml b/tasks/install.yml index eaed1d2..b5dd68c 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -1,6 +1,5 @@ --- -- name: installing iptables +- name: Install iptables package package: name: '{{ iptables_package }}' state: latest - diff --git a/vars/os_Debian.yml b/vars/os_Debian.yml index 6b39d87..b79f4d7 100644 --- a/vars/os_Debian.yml +++ b/vars/os_Debian.yml @@ -1,3 +1,2 @@ --- - iptables_package: iptables diff --git a/vars/os_RedHat.yml b/vars/os_RedHat.yml index 14efd9b..bf610a6 100644 --- a/vars/os_RedHat.yml +++ b/vars/os_RedHat.yml @@ -1,3 +1,2 @@ --- - iptables_package: iptables-services