Convert boolean strings from set_fact to proper boolean values
Also adds integration tests for booleanification of strings Fixes #8629
This commit is contained in:
parent
ed330addf6
commit
ec64538833
1 changed files with 8 additions and 0 deletions
|
@ -46,4 +46,12 @@ EXAMPLES = '''
|
|||
- set_fact:
|
||||
one_fact: something
|
||||
other_fact: "{{ local_var * 2 }}"
|
||||
|
||||
# As of 1.8, Ansible will convert boolean strings ('true', 'false', 'yes', 'no')
|
||||
# to proper boolean values when using the key=value syntax, however it is still
|
||||
# recommended that booleans be set using the complex argument style:
|
||||
- set_fact:
|
||||
one_fact: true
|
||||
other_fact: false
|
||||
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue