From: Dimitri Savineau Date: Mon, 25 Jan 2021 19:40:00 +0000 (-0500) Subject: ceph-facts: set rgw_instances_all fact once X-Git-Tag: v6.0.0~25 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=7208a39e5752fc9c568ae5aa4c6fcca78704d477;p=ceph-ansible.git ceph-facts: set rgw_instances_all fact once There's no need to set the rgw_instances_all fact for each node. We can rely on run_once for that one. Signed-off-by: Dimitri Savineau --- diff --git a/roles/ceph-facts/tasks/set_radosgw_address.yml b/roles/ceph-facts/tasks/set_radosgw_address.yml index e586a0401..6eae737d7 100644 --- a/roles/ceph-facts/tasks/set_radosgw_address.yml +++ b/roles/ceph-facts/tasks/set_radosgw_address.yml @@ -78,6 +78,7 @@ set_fact: rgw_instances_all: '{{ rgw_instances_all | default([]) | union(hostvars[item]["rgw_instances_host"]) }}' with_items: "{{ groups.get(rgw_group_name, []) }}" + run_once: true when: - inventory_hostname in groups.get(rgw_group_name, []) - hostvars[item]["rgw_multisite"] | default(False) | bool