remove bare var handling in conditionals (#51030)

* remove bare var handling in conditionals

  this makes top level and multilevel vars (dicts keys) behave the same
  it will require adding |bool for 'string comparissons' in indirect templates

  - added new tests to ensure uniform handling
  - switched to 'is' testing for status
  - changed warning to 'conditional' as 'when:' is not only place it gets triggered

* updated to include toggle and deprecation

* fix deprecated

* updated tests to handle toggle

* fixed typo and added note about the future
This commit is contained in:
Brian Coca 2019-01-30 15:00:24 -05:00 committed by ansibot
commit 4a0fceaa3b
8 changed files with 589 additions and 374 deletions

View file

@ -0,0 +1,3 @@
bugfixes:
- remove bare var handling from conditionals (not needed since we removed bare vars from `with_` loops) to normalize handling of
variable values, no matter if the string value comes from a top level variable or from a dictionary key or subkey