]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
playbook: improve facts gathering
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 3 May 2018 16:41:16 +0000 (18:41 +0200)
committerSébastien Han <seb@redhat.com>
Fri, 4 May 2018 12:28:19 +0000 (14:28 +0200)
there is no need to gather facts with O(N^2) way.
Only one node should gather facts from other node.

Fixes: #2553
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
site-docker.yml.sample
site.yml.sample

index 3ea16be3d8060f013d93d0fbac4f6f606bc20e34..8949a09c211753c20274593f5b7d76623bf6d04b 100644 (file)
@@ -30,7 +30,8 @@
       setup:
       delegate_to: "{{ item }}"
       delegate_facts: True
-      with_items: "{{ groups['all'] | difference(groups.get('clients', [])) }}"
+      with_items: "{{ groups['all'] }}"
+      run_once: true
       when:
         - delegate_facts_host | bool
 
index 3a56a30b490fce4fd5c08034e14702ac04e13063..da6ecb3721ba2b83c6e2a1ee6df97b76279f9012 100644 (file)
@@ -59,6 +59,7 @@
       delegate_to: "{{ item }}"
       delegate_facts: True
       with_items: "{{ groups['all'] }}"
+      run_once: true
       when:
         - delegate_facts_host | bool