]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-facts: check for mon socket in its own host
authorSeena Fallah <seenafallah@gmail.com>
Sun, 27 Sep 2020 17:04:14 +0000 (20:34 +0330)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 29 Sep 2020 14:32:54 +0000 (16:32 +0200)
delegate to its own host after checking mon socket to findout if mon socket is in-use or not.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 69f7e353823fffd9dff505679f9c9dbeb4fd810d)

roles/ceph-facts/tasks/facts.yml

index 1c7f970111dd6b6da0b4bd81a21025e25130bf3f..2e7e21e67541270eee0d46dfcc07096cff1590fa 100644 (file)
@@ -88,6 +88,7 @@
       check_mode: no
       register: mon_socket
       run_once: true
+      delegate_to: "{{ hostvars[item.item]['inventory_hostname'] }}"
       with_items: "{{ mon_socket_stat.results }}"
       when:
         - not containerized_deployment | bool