Add become: true to the container json file modules

Adding the become: true when calling the modules which manage files in
/var/lib/tripleo-config, they need root access.

Change-Id: Ic3a5f7d079993ca31176df5e460640938495bb7b
This commit is contained in:
Emilien Macchi 2020-07-14 22:51:14 -04:00
parent fd73be25a2
commit 4395e4a3ce
1 changed files with 2 additions and 0 deletions

View File

@ -237,6 +237,7 @@
- container_startup_configs
- name: Generate startup configs files per step and per container
become: true
container_startup_config:
config_base_dir: /var/lib/tripleo-config/container-startup-config
config_data: "{{ lookup('file', (tripleo_role_name + '/docker_config.yaml'), errors='ignore') | default({}, True) | from_yaml }}"
@ -244,6 +245,7 @@
- container_startup_configs
- name: Ensure config hashes are up-to-date for container startup configs
become: true
container_puppet_config:
update_config_hash_only: true
tags: