ansible/ansible — pull request #146 by jhoekx (2012-04-16 09:09:13+00:00)
Title: Yaml inventory

Introduce a YAML inventory format (issue #144).

The inventory logic moved outside of Runner to a separate tested file. The old simple inventory format and the scripted inventory format still exist.

The YAML format looks like:

```
---

- jupiter
- host: saturn
vars:
- moon: titan

- zeus

- 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
```

Variables for hosts can be defined. Groups can have group variables. Hosts can be in multiple groups.