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

19 lines
422 B
YAML
Raw Normal View History

2023-05-21 11:31:41 +02:00
---
- name: Copy conf
ansible.builtin.template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
group: root
2023-05-21 15:19:59 +02:00
mode: u=rwx,g=rx,o=rx
2023-05-21 11:31:41 +02:00
loop:
2023-05-21 15:19:59 +02:00
- { src: 'firewall.j2', dest: '/usr/bin/firewall' }
2023-05-21 11:31:41 +02:00
register: iptables_templates_results
become: yes
2023-05-21 15:19:59 +02:00
- name: Ensure firewall is load in startup
ansible.builtin.cron:
name: "Firewall"
special_time: "reboot"
job: "/usr/bin/firewall"
become: yes