Skip to content

Support for YAML inventories #154

@tomobrien

Description

@tomobrien

It would be great to support the YAML inventory as specified in the docs, http://docs.ansible.com/ansible/devel/plugins/inventory/yaml.html


instances_v3:
children:
webservers_v3:
hosts:
app01:
app02:
app03:
vars:
client: bigcompany
owner: Tom

It almost works. Except vars give "Unsupported vars syntax" and it treats the hostgroups and vars as hosts themselves.

Command:
ansible-cmdb -t txt_table out/ out_rpms/ -i hosts.yml

Output:

Unsupported vars syntax. Skipping line: client: bigcompany
Unsupported vars syntax. Skipping line: owner: Tom
...
--- not reachable
client not reachable
owner not reachable
...

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions