Skip to content

Instantly share code, notes, and snippets.

@tairov
Created May 10, 2018 14:37
Show Gist options
  • Save tairov/e1977729095b58c5f6c708f00b205ca2 to your computer and use it in GitHub Desktop.
Save tairov/e1977729095b58c5f6c708f00b205ca2 to your computer and use it in GitHub Desktop.
# 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"
- 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