From 5c771df7d1c1f61f0c8c80f90181dd9000f3b7cd Mon Sep 17 00:00:00 2001 From: dommgifer Date: Sat, 22 Dec 2018 15:02:37 +0800 Subject: [PATCH] Add become for Octavia configuration tasks This is required to support execution as a non-root user. Change-Id: Idd2deec2918e5eb7743e60112a91cb31edf5aad3 Close-bug: #1809527 --- ansible/roles/octavia/tasks/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/octavia/tasks/config.yml b/ansible/roles/octavia/tasks/config.yml index e811c4aa09..43af6962e5 100644 --- a/ansible/roles/octavia/tasks/config.yml +++ b/ansible/roles/octavia/tasks/config.yml @@ -104,6 +104,7 @@ copy: src: "{{ node_custom_config }}/octavia/{{ item }}" dest: "{{ node_config_directory }}/octavia-housekeeping/{{ item }}" + become: true register: octavia_housekeeping_certificate when: - inventory_hostname in groups[service.group] @@ -121,6 +122,7 @@ copy: src: "{{ node_custom_config }}/octavia/{{ item }}" dest: "{{ node_config_directory }}/octavia-health-manager/{{ item }}" + become: true register: octavia_health_manager_certificate when: - inventory_hostname in groups[service.group]