From b1e3e8ab1d1038c358cb468e740c247867fcc39e Mon Sep 17 00:00:00 2001 From: Florent CARLI Date: Tue, 12 Sep 2023 11:24:05 +0200 Subject: [PATCH] site.yaml.sample: do not try to gather facts on "non-ceph" hosts The site.yaml.sample make ceph-ansible tries to gather facts on group "all" which may contains hosts that have nothing to do with ceph-ansible, and/or even unreachable hosts which will make the playbook fail. This commit will replace the "all" group by "ansible_play_hosts", containing only ceph-ansible related hosts. Signed-off-by: Florent CARLI --- site.yml.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site.yml.sample b/site.yml.sample index 1a73356ea0..25ebcfee73 100644 --- a/site.yml.sample +++ b/site.yml.sample @@ -46,7 +46,7 @@ - '!ohai' delegate_to: "{{ item }}" delegate_facts: True - with_items: "{{ groups['all'] | difference(groups.get('clients', [])) }}" + with_items: "{{ ansible_play_hosts | difference(groups.get('clients', [])) }}" run_once: true when: delegate_facts_host | bool