diff --git a/tasks/Debian.yml b/tasks/Debian.yml index b25a8c5..c9396cd 100644 --- a/tasks/Debian.yml +++ b/tasks/Debian.yml @@ -29,7 +29,7 @@ dest: /etc/default/grub regexp: '^(GRUB_CMDLINE_LINUX=".*)"$' line: '\1 cgroup_enable=memory swapaccount=1"' - backrefs: yes + backrefs: true when: - not docker_installed.stat.exists @@ -39,7 +39,7 @@ - not docker_installed.stat.exists - name: Check whether ufw status is active - ansible.builtin.shell: ufw status + ansible.builtin.command: ufw status changed_when: false ignore_errors: true register: ufw_check diff --git a/tasks/main.yml b/tasks/main.yml index 4296d06..47c1500 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -60,7 +60,8 @@ # # - port TCP et UDP 7946: permet la communication entre les machines du swarm # -# - interfaces docker0 and docker_gwbridge ? firewall-cmd --change-zone=docker0 --zone=trusted --permanent; firewall-cmd --change-zone=docker_gwbridge --zone=trusted --permanent +# - interfaces docker0 and docker_gwbridge ? +# firewall-cmd --change-zone=docker0 --zone=trusted --permanent; firewall-cmd --change-zone=docker_gwbridge --zone=trusted --permanent - name: Install python library for docker ansible.builtin.package: