From: Paul Cuzner Date: Fri, 25 May 2018 00:13:20 +0000 (+1200) Subject: Add privilege escalation to iscsi purge tasks X-Git-Tag: v3.1.0rc4~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bdff7204f28480b0435fde73415253983234a54b;p=ceph-ansible.git Add privilege escalation to iscsi purge tasks Without the escalation, invocation from non-root users with fail when accessing the rados config object, or when attempting to log to /var/log Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1549004 Signed-off-by: Paul Cuzner (cherry picked from commit 2890b57cfc2e1ef9897a791ce60f4a5545011907) Signed-off-by: Sébastien Han --- diff --git a/infrastructure-playbooks/purge-iscsi-gateways.yml b/infrastructure-playbooks/purge-iscsi-gateways.yml index 721a02e6e..a773ba678 100644 --- a/infrastructure-playbooks/purge-iscsi-gateways.yml +++ b/infrastructure-playbooks/purge-iscsi-gateways.yml @@ -21,6 +21,7 @@ - name: Removing the gateway configuration hosts: iscsi-gws + become: yes vars: - igw_purge_type: "{{hostvars['localhost']['igw_purge_type']}}" @@ -34,4 +35,3 @@ - name: restart rbd-target-gw daemons service: name=rbd-target-gw state=restarted -