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
|
||||
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
|
||||
script: iptables.sh
|
||||
notify: persist iptables
|
||||
shell: bash iptables.sh
|
||||
|
||||
- name: set nameserver to localhost
|
||||
copy:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue