Skip to content

Instantly share code, notes, and snippets.

@szibis
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save szibis/10113446 to your computer and use it in GitHub Desktop.
Save szibis/10113446 to your computer and use it in GitHub Desktop.
---
- name: testing vars_files start
hosts: localhost
user: root
gather_facts: false
vars_files:
- vars.yml
vars:
type: "var_from_vars"
tasks:
- include: testl1.yml type="{{ type }}"
- name: test type in playbook
debug: msg="{{ type }}"
---
- include: testl2.yml type={{ type }}
- name: test in first level include
debug: msg="{{ type }}"
---
- name: test in second level include
debug: msg="{{ type }}"
---
type: "var_from_file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment