From 2011e4dbc8e4c90dfb60ecd4c59325782d95986c Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 2 Oct 2020 13:32:51 +0200 Subject: [PATCH] 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 --- infrastructure-playbooks/purge-cluster.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: