Do not write octavia_amp_ssh_key if auto_config disabled

This task is writing private key from passwords to
/etc/kolla/octavia-worker/{{ octavia_amp_ssh_key_name }} even
if user disabled octavia auto configure.

This patch is adding conditional for this task and skipping
it if octavia_auto_configure: "no".

Closes-Bug: #1927727

Change-Id: Ib993b387d681921d804f654bea780a1481b2b0d0
This commit is contained in:
Michal Arbet 2021-05-07 14:10:46 +02:00 committed by Mark Goddard
parent aff99355d2
commit 41fe771bcc
2 changed files with 9 additions and 1 deletions

View File

@ -110,7 +110,9 @@
group: "{{ config_owner_group }}"
mode: "0400"
become: True
when: inventory_hostname in groups[octavia_services['octavia-worker']['group']]
when:
- inventory_hostname in groups[octavia_services['octavia-worker']['group']]
- octavia_auto_configure | bool
- name: Copying certificate files for octavia-worker
vars:

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes an issue with Octavia SSH key copying if user disabled Octavia
auto configuration.
`LP##1927727 <https://bugs.launchpad.net/kolla-ansible/+bug/1927727>`__