ansible/ansible — pull request #512 by jhoekx (2012-06-27 06:33:25+00:00)
Title: Correctly add ungrouped hosts to 'ungrouped' in YAML inventory.

First add groups while parsing. In a second pass, add any hosts to the groups.

Without doing this the following hosts file (or any without explicitly defined groups) would fail:

```
---
- host:
vars:
- ansible_python_interpreter: /usr/bin/python2
```

Take 2, now with tests and different implementation as discussed in #505.