mirror of https://github.com/ansible/ansible.git
Remove YAML inventory tests since this is now deprecated.
parent
5a67a556cd
commit
dde11baa56
@ -1,82 +0,0 @@
|
||||
---
|
||||
|
||||
# Below is the original way of defining hosts and groups.
|
||||
|
||||
- jupiter
|
||||
- host: saturn
|
||||
vars:
|
||||
moon: titan
|
||||
moon2: enceladus
|
||||
|
||||
- host: mars
|
||||
|
||||
- host: zeus
|
||||
vars:
|
||||
- ansible_ssh_port: 3001
|
||||
|
||||
- group: greek
|
||||
hosts:
|
||||
- zeus
|
||||
- hera
|
||||
- poseidon
|
||||
vars:
|
||||
- ansible_ssh_port: 3000
|
||||
- ntp_server: olympus.example.com
|
||||
|
||||
- group: norse
|
||||
hosts:
|
||||
- host: thor
|
||||
vars:
|
||||
- hammer: True
|
||||
- odin
|
||||
- loki
|
||||
|
||||
- group: ruler
|
||||
hosts:
|
||||
- zeus
|
||||
- odin
|
||||
|
||||
- group: multiple
|
||||
hosts:
|
||||
- saturn
|
||||
|
||||
# Here we demonstrate that groups can be defined on a per-host basis.
|
||||
# When managing a large set of systems this format makes it easier to
|
||||
# ensure each of the systems is defined in a set of groups, compared
|
||||
# to the standard group definitions, where a host may need to be added
|
||||
# to multiple disconnected groups.
|
||||
|
||||
- host: garfield
|
||||
groups: [ comic, cat, orange ]
|
||||
vars:
|
||||
- nose: pink
|
||||
|
||||
- host: odie
|
||||
groups: [ comic, dog, yellow ]
|
||||
|
||||
- host: mickey
|
||||
groups: [ cartoon, mouse, red ]
|
||||
|
||||
- host: goofy
|
||||
groups: [ cartoon, dog, orange ]
|
||||
|
||||
- host: tom
|
||||
groups: [ cartoon, cat, gray ]
|
||||
|
||||
- host: jerry
|
||||
groups: [ cartoon, mouse, brown ]
|
||||
|
||||
- group: cat
|
||||
vars:
|
||||
- ears: pointy
|
||||
- nose: black
|
||||
|
||||
- group: dog
|
||||
vars:
|
||||
- ears: flappy
|
||||
- nose: black
|
||||
|
||||
- group: mouse
|
||||
vars:
|
||||
- ears: round
|
||||
- nose: black
|
Loading…
Reference in New Issue