From 93584a602da6dbb7e4e77e740a9adeb161c2f765 Mon Sep 17 00:00:00 2001 From: Adrien Reslinger Date: Wed, 30 Nov 2022 07:50:26 +0100 Subject: [PATCH] Fix more linter issues --- tasks/Debian.yml | 4 ++-- tasks/main.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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: