19 lines
No EOL
422 B
YAML
19 lines
No EOL
422 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.j2', 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 |