Created
March 10, 2020 15:40
-
-
Save richm/5383fa661d741135fe9975ecfc97d54c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: set parameters for test | |
hosts: localhost | |
tasks: | |
- set_fact: | |
emptydict: {} | |
- set_fact: | |
junkdict: {'foo':'bar'} | |
- set_fact: | |
junkstr: 'False' | |
- debug: | |
msg: thereherehere | |
when: junkstr|bool | |
- debug: | |
msg: hereherehere | |
when: junkdict|d() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment