From f00ee1244f09876f1016b20eebb0c2d3f6c5ed87 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Fri, 10 Jan 2020 09:31:26 -0500 Subject: [PATCH] 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 (cherry picked from commit a09d1c38bf80e412265f58d732c554262ef23cc7) --- infrastructure-playbooks/purge-iscsi-gateways.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/infrastructure-playbooks/purge-iscsi-gateways.yml b/infrastructure-playbooks/purge-iscsi-gateways.yml index c0f752e2f..7e05b51b7 100644 --- a/infrastructure-playbooks/purge-iscsi-gateways.yml +++ b/infrastructure-playbooks/purge-iscsi-gateways.yml @@ -80,6 +80,12 @@ block: - import_role: 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 command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} dashboard iscsi-gateway-list -f json" -- 2.47.3