Skip to content

Instantly share code, notes, and snippets.

@richm
Created March 10, 2020 15:40
Show Gist options
  • Save richm/5383fa661d741135fe9975ecfc97d54c to your computer and use it in GitHub Desktop.
Save richm/5383fa661d741135fe9975ecfc97d54c to your computer and use it in GitHub Desktop.
---
- 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