From 0c2bee43b66c02b02c52324ff3248952248d244b Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Tue, 14 Jul 2020 22:51:14 -0400 Subject: [PATCH] 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 (cherry picked from commit 4395e4a3ceb41874a8855129444e6387686c649b) --- common/deploy-steps-tasks-step-1.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/deploy-steps-tasks-step-1.yaml b/common/deploy-steps-tasks-step-1.yaml index 7e31a77d36..62c5e06f3f 100644 --- a/common/deploy-steps-tasks-step-1.yaml +++ b/common/deploy-steps-tasks-step-1.yaml @@ -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: