Last active
August 29, 2015 13:58
-
-
Save szibis/10113446 to your computer and use it in GitHub Desktop.
This file contains 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: 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 }}" |
This file contains 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
--- | |
- include: testl2.yml type={{ type }} | |
- name: test in first level include | |
debug: msg="{{ type }}" |
This file contains 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: test in second level include | |
debug: msg="{{ type }}" |
This file contains 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
--- | |
type: "var_from_file" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment