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 <pcuzner@redhat.com>
(cherry picked from commit 2890b57cfc)
Signed-off-by: Sébastien Han <seb@redhat.com>
pull/2659/head
Paul Cuzner 2018-05-25 12:13:20 +12:00 committed by Sébastien Han
parent 0d3bce95e1
commit bdff7204f2
1 changed files with 1 additions and 1 deletions

View File

@ -21,6 +21,7 @@
- name: Removing the gateway configuration - name: Removing the gateway configuration
hosts: iscsi-gws hosts: iscsi-gws
become: yes
vars: vars:
- igw_purge_type: "{{hostvars['localhost']['igw_purge_type']}}" - igw_purge_type: "{{hostvars['localhost']['igw_purge_type']}}"
@ -34,4 +35,3 @@
- name: restart rbd-target-gw daemons - name: restart rbd-target-gw daemons
service: name=rbd-target-gw state=restarted service: name=rbd-target-gw state=restarted