Skip to content

Instantly share code, notes, and snippets.

@tgerla
Created February 25, 2015 01:20
Show Gist options
  • Save tgerla/5c839de366cf4a3cad3e to your computer and use it in GitHub Desktop.
Save tgerla/5c839de366cf4a3cad3e to your computer and use it in GitHub Desktop.
- debug: msg="should not appear"
- debug: msg="should appear"
---
-
hosts: all
connection: local
gather_facts: false
tasks:
- include_vars: vars.yml
- debug: var=security
- debug: var=security.ssh_key_file
- include: 1.yml
when: security.ssh_key_file is defined
- include: 2.yml
when: security.pgp_id is defined
security:
pgp_id: asdfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment