moved iptables script to template

This commit is contained in:
Philip (a-0) 2022-07-28 22:15:29 +02:00
parent 2a0b1c518d
commit 20c05bac21
2 changed files with 7 additions and 3 deletions

View file

@ -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: