]> git.apps.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)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Tue, 29 Sep 2020 00:38:52 +0000 (20:38 -0400)
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 b76b6333e0156afc22217b929416011c648753fd..1bb0523d1d96081e84e834daaab295d04a6de947 100644 (file)
@@ -71,6 +71,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