Install iptables

This commit is contained in:
Ryan Cavicchioni 2019-11-24 18:55:55 -06:00
parent 04f2452e1c
commit b8c39416de
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
2 changed files with 10 additions and 0 deletions

View File

@ -5,6 +5,11 @@ firewall_iptables_rules_v6: /etc/iptables/rules.v6-tmp
firewall_ipset_v4: /etc/iptables/ipset.v4-tmp firewall_ipset_v4: /etc/iptables/ipset.v4-tmp
firewall_ipset_v6: /etc/iptables/ipset.v6-tmp firewall_ipset_v6: /etc/iptables/ipset.v6-tmp
firewall_iptables_package_state: present
firewall_iptables_package_name: iptables
#firewall_iptables_service_state: started
#firewall_iptables_service_enabled: true
firewall_iptables_persistent_package_name: iptables-persistent firewall_iptables_persistent_package_name: iptables-persistent
firewall_iptables_persistent_package_state: present firewall_iptables_persistent_package_state: present

View File

@ -6,6 +6,11 @@
- "{{ ansible_distribution }}.yaml" - "{{ ansible_distribution }}.yaml"
- "{{ ansible_os_family }}.yaml" - "{{ ansible_os_family }}.yaml"
- name: install iptables
package:
name: "{{ firewall_iptables_package_name }}"
state: "{{ firewall_iptables_package_state }}"
- name: install iptables-persistent - name: install iptables-persistent
package: package:
name: "{{ firewall_iptables_persistent_package_name }}" name: "{{ firewall_iptables_persistent_package_name }}"