mirror of https://github.com/ceph/ceph-ansible.git
purge-iscsi-gateways: don't run all ceph-facts
We only need to have the container_binary fact. Because we're not
gathering the facts from all nodes then the purge fails trying to get
one of the grafana fact.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1786686
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit a09d1c38bf
)
pull/4917/head
parent
f042ece9af
commit
f00ee1244f
|
@ -80,6 +80,12 @@
|
||||||
block:
|
block:
|
||||||
- import_role:
|
- import_role:
|
||||||
name: ceph-facts
|
name: ceph-facts
|
||||||
|
tasks_from: container_binary
|
||||||
|
|
||||||
|
- name: set_fact container_exec_cmd
|
||||||
|
set_fact:
|
||||||
|
container_exec_cmd: "{{ container_binary }} exec ceph-mon-{{ ansible_hostname }}"
|
||||||
|
when: containerized_deployment | bool
|
||||||
|
|
||||||
- name: get iscsi gateway list
|
- name: get iscsi gateway list
|
||||||
command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} dashboard iscsi-gateway-list -f json"
|
command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} dashboard iscsi-gateway-list -f json"
|
||||||
|
|
Loading…
Reference in New Issue