diff --git a/tasks/firewalld.yml b/tasks/firewalld.yml new file mode 100644 index 0000000..efebf10 --- /dev/null +++ b/tasks/firewalld.yml @@ -0,0 +1,7 @@ +--- +- name: disable firewalld + systemd: + name: firewalld + state: stopped + enabled: false + become: true diff --git a/tasks/main.yml b/tasks/main.yml index 6ca1b2c..1c4d07b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -17,6 +17,8 @@ - include_tasks: ssh.yml - include_tasks: pacman.yml when: ansible_facts['os_family'] == "Archlinux" +- include_tasks: firewalld.yml + when: ansible_facts['os_family'] == "RedHat" - include_tasks: depot_debian.yml when: ansible_facts['os_family'] == "Debian" - include_tasks: depot_redhat.yml