Fix variable names
This commit is contained in:
parent
2e92b463e2
commit
968924d053
3 changed files with 8 additions and 8 deletions
|
@ -6,7 +6,7 @@
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
- name: common | Load iptables rules for IPv4
|
- name: common | Load iptables rules for IPv4
|
||||||
shell: 'cat {{ common__conf_ipv4 }} | iptables-restore'
|
shell: 'cat {{ common__iptables__conf_ipv4 }} | iptables-restore'
|
||||||
|
|
||||||
- name: common | Load iptables rules for IPv6
|
- name: common | Load iptables rules for IPv6
|
||||||
shell: 'cat {{ common__conf_ipv6 }} | ip6tables-restore'
|
shell: 'cat {{ common__iptables__conf_ipv6 }} | ip6tables-restore'
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
- name: Create directory for iptables configuration
|
- name: Create directory for iptables configuration
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
path: '{{ common__conf_dir }}'
|
path: '{{ common__iptables__conf_dir }}'
|
||||||
mode: 'u=rwx,g=rx,o=rx'
|
mode: 'u=rwx,g=rx,o=rx'
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
- name: Install iptables rules for IPv4
|
- name: Install iptables rules for IPv4
|
||||||
template:
|
template:
|
||||||
src: templates/rules.v4
|
src: templates/rules.v4
|
||||||
dest: '{{ common__conf_ipv4 }}'
|
dest: '{{ common__iptables__conf_ipv4 }}'
|
||||||
mode: 'u=rw,g=r,o=r'
|
mode: 'u=rw,g=r,o=r'
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
- name: Install iptables rules for IPv6
|
- name: Install iptables rules for IPv6
|
||||||
template:
|
template:
|
||||||
src: templates/rules.v6
|
src: templates/rules.v6
|
||||||
dest: '{{ common__conf_ipv6 }}'
|
dest: '{{ common__iptables__conf_ipv6 }}'
|
||||||
mode: 'u=rw,g=r,o=r'
|
mode: 'u=rw,g=r,o=r'
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
common__conf_dir: '/etc/iptables'
|
common__iptables__conf_dir: '/etc/iptables'
|
||||||
common__conf_ipv4: '{{ common__conf_dir }}/rules.v4'
|
common__iptables__conf_ipv4: '{{ common__iptables__conf_dir }}/rules.v4'
|
||||||
common__conf_ipv6: '{{ common__conf_dir }}/rules.v6'
|
common__iptables__conf_ipv6: '{{ common__iptables__conf_dir }}/rules.v6'
|
||||||
|
|
Loading…
Reference in a new issue