mirror of https://github.com/ceph/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 <pcuzner@redhat.com>
(cherry picked from commit 2890b57cfc
)
Signed-off-by: Sébastien Han <seb@redhat.com>
pull/2659/head
parent
0d3bce95e1
commit
bdff7204f2
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue