1
0
Fork 0
myserver-configuration/roles/iptables/tasks/base.yml

19 lines
No EOL
419 B
YAML

---
- name: Copy conf
ansible.builtin.template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
group: root
mode: u=rwx,g=rx,o=rx
loop:
- { src: 'firewall', dest: '/usr/bin/firewall' }
register: iptables_templates_results
become: yes
- name: Ensure firewall is load in startup
ansible.builtin.cron:
name: "Firewall"
special_time: "reboot"
job: "/usr/bin/firewall"
become: yes