Created
May 10, 2018 14:37
-
-
Save tairov/e1977729095b58c5f6c708f00b205ca2 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
# ansible-playbook -i inventory playbook.yml -vv | |
all: | |
vars: | |
ansible_connection: local | |
var1: "value from all" | |
group1: | |
vars: | |
var1: "value from group1" | |
hosts: | |
host1: | |
var1: "value from host1" | |
host1: | |
var1: "value from separate host1" |
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 | |
hosts: | |
- group1 | |
tasks: | |
- debug: var=var1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment