Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
filter bare variable with |bool (deprecation warn) #57691
ansible issues a deprecation warning if you are using a bare variable with when, it suggests you filter the expression using the |bool filter
updated doc so it's up to date.
see discussion at #53428
Thanks @asouini for this proposed fix. I believe the underlying behaviour has now been fixed by PR #57190. As such, can you modify the example so that it's not using a boolean (that is - not piping a boolean into bool). I think the rest is good and needed, but the other PR fixes the bool to bool problem.