zuul-jobs/roles/write-inventory/tasks/main.yaml
Ian Wienand ab0508600a write-inventory: Add groups to created inventory
Add the groups from the "groups" ansible variable to the "children" of
the created inventory.

Change-Id: I6c797ff939f8198d5c0928558df8ed04bec14efd
2018-08-28 19:54:21 +10:00

8 lines
303 B
YAML

- name: Write inventory file
write_inventory:
dest: "{{ write_inventory_dest }}"
hostvars: "{{ hostvars }}"
groups: "{{ groups }}"
include_hostvars: "{{ write_inventory_include_hostvars | default(omit) }}"
exclude_hostvars: "{{ write_inventory_exclude_hostvars | default(omit) }}"