tripleo-heat-templates/common/container_startup_configs_tasks.yaml
Alex Schultz a833432b16 Update loop_vars
We're currently throwing warnings about duplicated loop variables so we
should specific different variable names for these loops.

Change-Id: I359d6402a67f6ab4b810e294fdbf3ca02d140d6d
2020-05-18 15:13:18 -06:00

22 lines
639 B
YAML

---
- set_fact:
step_path: "{{ item.0 }}"
- name: "Create directory for {{ step_path }} container startup configs"
file:
path: "/var/lib/tripleo-config/container-startup-config/{{ step_path }}/"
mode: 0600
recurse: yes
setype: container_file_t
- name: "Creating container startup configs for {{ step_path }}"
copy:
content: "{{ startup_data.value | to_nice_json }}"
dest: "/var/lib/tripleo-config/container-startup-config/{{ step_path }}/{{ startup_data.key }}.json"
setype: container_file_t
mode: 0600
no_log: true
loop_control:
loop_var: startup_data
loop: "{{ item.1 | dict2items }}"