moved iptables script to template
This commit is contained in:
parent
2a0b1c518d
commit
20c05bac21
2 changed files with 7 additions and 3 deletions
|
@ -13,10 +13,14 @@
|
||||||
name: iptables-persistent
|
name: iptables-persistent
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: set iptables rules
|
- name: Template & copy iptables script
|
||||||
|
template:
|
||||||
|
src: iptables.sh.j2
|
||||||
|
dest: iptables.sh
|
||||||
|
|
||||||
|
- name: Execute iptables script
|
||||||
become: yes
|
become: yes
|
||||||
script: iptables.sh
|
shell: bash iptables.sh
|
||||||
notify: persist iptables
|
|
||||||
|
|
||||||
- name: set nameserver to localhost
|
- name: set nameserver to localhost
|
||||||
copy:
|
copy:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue