From 640bbc38abdf15d0cd67f717f9c4562008ac29da Mon Sep 17 00:00:00 2001 From: x191859 Date: Fri, 5 Jun 2020 14:56:52 +0000 Subject: [PATCH] Add missing become to some VMWare tasks Fixed on ``Copying VMware vCenter CA file`` and ``Copying over nsx.ini``. Change-Id: If909f59e7e4b241594c6b2567784ecad23e74226 Closes-Bug: #1882252 --- ansible/roles/ceilometer/tasks/config.yml | 1 + ansible/roles/neutron/tasks/config.yml | 1 + ...ug-missing-become-attributes-vmware-9ae97e49b4d7dc0d.yaml | 5 +++++ 3 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/bug-missing-become-attributes-vmware-9ae97e49b4d7dc0d.yaml diff --git a/ansible/roles/ceilometer/tasks/config.yml b/ansible/roles/ceilometer/tasks/config.yml index ca37980ed0..4195c2c98d 100644 --- a/ansible/roles/ceilometer/tasks/config.yml +++ b/ansible/roles/ceilometer/tasks/config.yml @@ -362,6 +362,7 @@ - "Restart {{ item.key }} container" - name: Copying VMware vCenter CA file + become: true vars: service: "{{ ceilometer_services['ceilometer-compute'] }}" copy: diff --git a/ansible/roles/neutron/tasks/config.yml b/ansible/roles/neutron/tasks/config.yml index 9a8c12c622..a5610fbbe8 100644 --- a/ansible/roles/neutron/tasks/config.yml +++ b/ansible/roles/neutron/tasks/config.yml @@ -393,6 +393,7 @@ - "Restart {{ service_name }} container" - name: Copying over nsx.ini + become: true vars: service_name: "neutron-server" neutron_server: "{{ neutron_services[service_name] }}" diff --git a/releasenotes/notes/bug-missing-become-attributes-vmware-9ae97e49b4d7dc0d.yaml b/releasenotes/notes/bug-missing-become-attributes-vmware-9ae97e49b4d7dc0d.yaml new file mode 100644 index 0000000000..52db079863 --- /dev/null +++ b/releasenotes/notes/bug-missing-become-attributes-vmware-9ae97e49b4d7dc0d.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Add missing "become: true" on some VMWare related tasks. Fixed on + ``Copying VMware vCenter CA file`` and ``Copying over nsx.ini``.