diff --git a/roles/cloudera_deploy/tasks/init.yml b/roles/cloudera_deploy/tasks/init.yml index 0d05a31..39565d1 100644 --- a/roles/cloudera_deploy/tasks/init.yml +++ b/roles/cloudera_deploy/tasks/init.yml @@ -136,7 +136,7 @@ - name: If Purge is defined, check it is boolean when: purge is defined ansible.builtin.assert: - that: purge is sameas true or purge is sameas false + that: purge|bool is sameas true or purge|bool is sameas false fail_msg: "purge key is present in definition, but not a boolean as expected" quiet: yes