formatting adjusted
This commit is contained in:
parent
1d60f5641b
commit
3fa6a3c5fc
@ -15,16 +15,6 @@ iptables_default_tail: |
|
|||||||
-A FORWARD -j REJECT
|
-A FORWARD -j REJECT
|
||||||
|
|
||||||
iptables_custom_rules: []
|
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.
|
# 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.
|
# Set this to 'yes', if you want the role to keep unmanaged rules.
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: restart iptables
|
- name: restart iptables
|
||||||
shell: sleep 2 && systemctl restart iptables
|
shell: sleep 2 && systemctl restart iptables
|
||||||
async: 1
|
async: 1
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: enable iptables service
|
- name: Enable iptables service
|
||||||
service:
|
service:
|
||||||
name: iptables
|
name: iptables
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: installing iptables
|
- name: Install iptables package
|
||||||
package:
|
package:
|
||||||
name: '{{ iptables_package }}'
|
name: '{{ iptables_package }}'
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
iptables_package: iptables
|
iptables_package: iptables
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
iptables_package: iptables-services
|
iptables_package: iptables-services
|
||||||
|
Loading…
Reference in New Issue
Block a user