Skip to content

Instantly share code, notes, and snippets.

@lanky
Created September 20, 2016 16:00
Show Gist options
  • Save lanky/95cd69e10e42422ee9578e57432e8e0d to your computer and use it in GitHub Desktop.
Save lanky/95cd69e10e42422ee9578e57432e8e0d to your computer and use it in GitHub Desktop.
- name: test stuff
hosts: all
gather_facts: no
tasks:
- name: set fact
set_fact:
myfact: "it is very good"
- name: test for it
debug:
msg: "test failed"
failed_when: '"all good" not in myfact'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment