]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge-iscsi-gateways: don't run all ceph-facts
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 10 Jan 2020 14:31:26 +0000 (09:31 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 10 Jan 2020 14:46:15 +0000 (15:46 +0100)
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>
infrastructure-playbooks/purge-iscsi-gateways.yml

index 45cc3407ef846290d58b4ed94c95b08438d1b293..96b632a9eac3f9934f749d4c9779ab7b680c420e 100644 (file)
       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"