]> 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>
Mon, 28 Sep 2020 22:21:12 +0000 (00:21 +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>
roles/ceph-facts/tasks/facts.yml

index a2c59847d2c015ab7f60ef60938a4b28389ea92d..00be41da0cfeffa19bc7db2e96c78c994f073f5e 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