3a24aa9a70
See test/yaml_hosts for an example. Hosts can be part of multiple groups. Groups can also have variables, inherited by the hosts. There is no variable scope, last variable seen wins.
26 lines
271 B
Text
26 lines
271 B
Text
---
|
|
|
|
- jupiter
|
|
- host: saturn
|
|
vars:
|
|
- moon: titan
|
|
|
|
- group: greek
|
|
hosts:
|
|
- zeus
|
|
- hera
|
|
- poseidon
|
|
vars:
|
|
- ansible_ssh_port: 3000
|
|
|
|
- group: norse
|
|
hosts:
|
|
- host: thor
|
|
vars:
|
|
- hammer: True
|
|
- odin
|
|
- loki
|
|
|
|
- group: multiple
|
|
hosts:
|
|
- saturn
|