Allow distribution of non-autogenerated certs

This patch changes the conditional run of the certs generation from
being dependent on the value of generate_certs to whether there are
actual certs present.

Related-Bug: #1838039

Change-Id: I90bb377c76f51db906de64c134271ec866d11bb5
This commit is contained in:
Brent Eagles 2019-07-24 11:28:10 -02:30
parent 4369b998d5
commit cb69257614
2 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,7 @@
setype: svirt_sandbox_file_t
become: true
- name: Copying key info to octavia
- name: Copying key info to octavia if not already there
become: true
copy:
content: "{{ item.content }}"

View File

@ -6,7 +6,9 @@
- include_tasks: certificate.yml
when:
- generate_certs | bool
- private_key_content|length > 0
- ca_cert_content|length > 0
- service_pem_content|length > 0
- include_tasks: netport.yml