Do not override user_secrets.yml if it already exists

When bootstrap-host role is reexecuted, user_secrets.yml is overriden.
It may lead to unexpeted behaviors. This task should not override
user_secrets.yml if this file already exists.

Change-Id: I140b1675526e0d3fbf206d09bcda768206918c1e
This commit is contained in:
Damian Dabrowski 2023-06-04 16:40:51 +02:00
parent 555ec6abb7
commit e92a4a9dce

View File

@ -57,6 +57,7 @@
dest: "/etc/openstack_deploy/{{ bootstrap_host_user_secrets_filename }}" dest: "/etc/openstack_deploy/{{ bootstrap_host_user_secrets_filename }}"
config_overrides: "{{ user_secrets_overrides | default({}) }}" config_overrides: "{{ user_secrets_overrides | default({}) }}"
config_type: "yaml" config_type: "yaml"
force: false
tags: tags:
- deploy-user-secrets - deploy-user-secrets