Fix Cloud + iptables

This commit is contained in:
Florian RICHER 2023-05-21 15:19:59 +02:00
parent 4ec713038a
commit 7adf079b23
5 changed files with 55 additions and 46 deletions

View file

@ -5,14 +5,15 @@
src: "{{ item.src }}"
dest: "{{ item.dest }}"
group: root
mode: u=rwx,g=x,o=x
mode: u=rwx,g=rx,o=rx
loop:
- { src: 'firewall.j2', dest: '/etc/init.d/firewall' }
- { src: 'firewall.j2', dest: '/usr/bin/firewall' }
register: iptables_templates_results
become: yes
- name: Ensure Service firewall is Enabled
become: yes
ansible.builtin.service:
name: firewall
enabled: yes
- name: Ensure firewall is load in startup
ansible.builtin.cron:
name: "Firewall"
special_time: "reboot"
job: "/usr/bin/firewall"
become: yes