Closed sgriffith3 closed 3 years ago
Hi,
Thanks for the issue and pull request.
I've recently switched to the format that's used now.
It boils down to upgrading jinja, comes with ansible. See requirements.txt for details.
Closing the PR, it's a strategic choise to use the is boolean
filter. Thanks anyway for the help!
name: Update bool assertions about: Update assertions to use type_debug to test variable is bool
Describe the change Hi there! I started running into an issue where I was receiving this failure:
After some digging and testing, I have not been able to find any documentation to contradict the error saying that there is no conditional check of
is boolean
for Jinja2 or Ansible.So I found the following syntax to check for whether a variable is of the type "bool" or not:
| type_debug == "bool"
This change simply replaces two instances of
is boolean
with| type_debug == "bool"
in the assert.yml file.Testing I tested this change in an existing playbook I had:
Using the ansible version: