zuul-jobs/roles/update-json-file

Update JSON file

This role reads a JSON file, merges it with supplied values using Ansible's combine filter and writes it back out. It is useful for updating configuration files. Note this role is not currently idempotent and will write the file each time.

Role Variables

The mode for the combined file.

The user for the combined file.

The group for the combined file.

The mode for the directory if that does not already exists.