Skip to content

Commit

Permalink
Update default from True to False for CONDITIONAL_BARE_VARS (ansible#…
Browse files Browse the repository at this point in the history
…70709)

ci_complete
  • Loading branch information
s-hertel authored Jul 20, 2020
1 parent c1402dd commit 2811d94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- conditionals - change the default of CONDITIONAL_BARE_VARS to False (https://github.com/ansible/ansible/issues/70682).
4 changes: 2 additions & 2 deletions lib/ansible/config/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -366,14 +366,14 @@ COLOR_WARN:
- {key: warn, section: colors}
CONDITIONAL_BARE_VARS:
name: Allow bare variable evaluation in conditionals
default: True
default: False
type: boolean
description:
- With this setting on (True), running conditional evaluation 'var' is treated differently than 'var.subkey' as the first is evaluated
directly while the second goes through the Jinja2 parser. But 'false' strings in 'var' get evaluated as booleans.
- With this setting off they both evaluate the same but in cases in which 'var' was 'false' (a string) it won't get evaluated as a boolean anymore.
- Currently this setting defaults to 'True' but will soon change to 'False' and the setting itself will be removed in the future.
- Expect the default to change in version 2.10 and that this setting eventually will be deprecated after 2.12
- Expect that this setting eventually will be deprecated after 2.12
env: [{name: ANSIBLE_CONDITIONAL_BARE_VARS}]
ini:
- {key: conditional_bare_variables, section: defaults}
Expand Down

0 comments on commit 2811d94

Please sign in to comment.