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:
James Cammarata 2014-09-10 09:51:55 -05:00
parent ed330addf6
commit ec64538833

View file

@ -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
'''