]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Add privilege escalation to iscsi purge tasks
authorPaul Cuzner <pcuzner@redhat.com>
Fri, 25 May 2018 00:13:20 +0000 (12:13 +1200)
committerSébastien Han <seb@redhat.com>
Fri, 25 May 2018 10:50:24 +0000 (03:50 -0700)
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>
infrastructure-playbooks/purge-iscsi-gateways.yml

index 721a02e6e09858492b315a39dc2c989d2c1bf7f3..a773ba6789785aa7a4f19164bf31df925bdba7b9 100644 (file)
@@ -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
-