Browse Source

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 4395e4a3ce)
tags/12.4.0
Emilien Macchi 2 months ago
parent
commit
0c2bee43b6
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      common/deploy-steps-tasks-step-1.yaml

+ 2
- 0
common/deploy-steps-tasks-step-1.yaml 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:


Loading…
Cancel
Save