From 3a6885b8b0680128c237e58a731ef8945bd9fac1 Mon Sep 17 00:00:00 2001 From: Paul Cuzner Date: Fri, 25 May 2018 12:13:20 +1200 Subject: [PATCH] =?utf8?q?Add=C2=A0privilege=C2=A0escalation=C2=A0to=C2=A0?= =?utf8?q?iscsi=C2=A0purge=C2=A0tasks?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- infrastructure-playbooks/purge-iscsi-gateways.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 - -- 2.47.3