improve conditional warnings (#57190)

* Fix order for warning on templated conditionals

Fix bare variable warnings when the variable is a boolean

* changelog

* Add tests for cases that should and should not give warnings

If the behavior may change when the default behavior for CONDITIONAL_BARE_VARS becomes False there should be a warning. Boolean type conditionals will not change in behavior so don't warn.

* oops, forgot to add files

* typo
This commit is contained in:
Sloane Hertel
2019-06-03 06:12:33 -04:00
committed by Martin Krizek
parent fecffea370
commit 21cd24a0dd
5 changed files with 54 additions and 6 deletions

View File

@@ -0,0 +1,3 @@
bugfixes:
- Only warn for bare variables if they are not type boolean (https://github.com/ansible/ansible/issues/53428)
- Fix regression warning on jinja2 delimiters in when statements (https://github.com/ansible/ansible/issues/56830)