zuul-jobs/roles/write-inventory/tasks/main.yaml
Ian Wienand 184152f07e write-inventory: add per-host variables
This allows us to write out host-specific variables into the inventory
from external jobs.

Change-Id: I0c3d08f6446174cb38d5eebaeae1db9dceb956b2
2020-07-08 17:20:21 +10:00

10 lines
469 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) }}"
additional_hostvars: "{{ write_inventory_additional_hostvars | default(omit) }}"
per_host_hostvars: "{{ write_inventory_per_host_hostvars | default(omit) }}"