The Ansible inventory output was not correctly adding hosts into groups. E.g.
group was not added when it was not defined in layout. Nested group was not
correctly found and host added.
This part is completely reworked and changes the behavior to:
add only a host name reference (no vars) into custom groups
add missing groups as children of 'all' group
works with both "groups" and "group" defined in metadata
add all hosts to 'all' with also variables. This ensures that the full host
object is defined only once.
The Ansible inventory output was not correctly adding hosts into groups. E.g. group was not added when it was not defined in layout. Nested group was not correctly found and host added.
This part is completely reworked and changes the behavior to:
Doc: https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html
Signed-off-by: Petr Vobornik pvoborni@redhat.com