Don't fail when openstack_pki_install_ca not defined

In some scenarios, it might be possible that openstack_pki_install_ca
is not defined for some reason. So we should not fail if it's the case.

Change-Id: Id08720e442da5d183785d2e395c6e234e079a4ce
Needed-By: https://review.opendev.org/c/openstack/ansible-config_template/+/796151
This commit is contained in:
Dmitriy Rabotyagov
2021-06-13 10:48:33 +03:00
parent fe04707b0b
commit 77ff7c7f26

View File

@@ -122,7 +122,7 @@
tasks_from: main_ca_install.yml
vars:
pki_dir: "{{ openstack_pki_dir }}"
pki_install_ca: "{{ openstack_pki_install_ca + openstack_host_ca_certificates }}"
pki_install_ca: "{{ openstack_pki_install_ca | default([]) + openstack_host_ca_certificates }}"
tags:
- always