diff --git a/ansible/roles/octavia/tasks/config.yml b/ansible/roles/octavia/tasks/config.yml index d2968020e7..818f0e14e6 100644 --- a/ansible/roles/octavia/tasks/config.yml +++ b/ansible/roles/octavia/tasks/config.yml @@ -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: diff --git a/releasenotes/notes/bug-1927727-4437103de59e85e5.yaml b/releasenotes/notes/bug-1927727-4437103de59e85e5.yaml new file mode 100644 index 0000000000..71ce661a3b --- /dev/null +++ b/releasenotes/notes/bug-1927727-4437103de59e85e5.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes an issue with Octavia SSH key copying if user disabled Octavia + auto configuration. + `LP##1927727 `__