formatting adjusted
This commit is contained in:
parent
1d60f5641b
commit
3fa6a3c5fc
@ -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.
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
|
||||
- name: restart iptables
|
||||
shell: sleep 2 && systemctl restart iptables
|
||||
async: 1
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: enable iptables service
|
||||
- name: Enable iptables service
|
||||
service:
|
||||
name: iptables
|
||||
enabled: yes
|
||||
|
@ -1,6 +1,5 @@
|
||||
---
|
||||
- name: installing iptables
|
||||
- name: Install iptables package
|
||||
package:
|
||||
name: '{{ iptables_package }}'
|
||||
state: latest
|
||||
|
||||
|
@ -1,3 +1,2 @@
|
||||
---
|
||||
|
||||
iptables_package: iptables
|
||||
|
@ -1,3 +1,2 @@
|
||||
---
|
||||
|
||||
iptables_package: iptables-services
|
||||
|
Loading…
Reference in New Issue
Block a user