tripleo-heat-templates/common/container_startup_configs_tasks.yaml
Cédric Jeanneret 0875895553 Replace svirt_sandbox_file_t by container_file_t
While they are, at SELinux level, exactly the same (one is an alias to
the other), the "container_file_t" name is easier to understand (and
shorter to write).

A second pass in a couple of days or weeks will be needed in order to
change files that were merged after this first pass.

Change-Id: Ib4b3e65dbaeb5894403301251866b9817240a9d5
2020-02-07 13:33:20 +01:00

20 lines
580 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: "{{ item.value | to_nice_json }}"
dest: "/var/lib/tripleo-config/container-startup-config/{{ step_path }}/{{ item.key }}.json"
setype: container_file_t
mode: 0600
no_log: true
loop: "{{ item.1 | dict2items }}"