From: Guillaume Abrioux Date: Fri, 2 Oct 2020 11:32:51 +0000 (+0200) Subject: lint: don't compare to literal true/false X-Git-Tag: v6.0.0alpha3~46 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2011e4dbc8e4c90dfb60ecd4c59325782d95986c;p=ceph-ansible.git lint: don't compare to literal true/false Fix ansible lint 601 error: [601] Don't compare to literal True/False Signed-off-by: Guillaume Abrioux --- diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index d0685d894..55d2bc1f3 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -791,7 +791,7 @@ state: absent when: - ansible_pkg_mgr == 'yum' - - purge_all_packages == true + - purge_all_packages | bool - name: purge extra packages with dnf dnf: @@ -799,7 +799,7 @@ state: absent when: - ansible_pkg_mgr == 'dnf' - - purge_all_packages == true + - purge_all_packages | bool - name: purge extra packages with apt apt: @@ -807,7 +807,7 @@ state: absent when: - ansible_pkg_mgr == 'apt' - - purge_all_packages == true + - purge_all_packages | bool - name: remove config and any ceph socket left file: