]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-facts: set rgw_instances_all fact once
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 25 Jan 2021 19:40:00 +0000 (14:40 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 1 Feb 2021 12:49:12 +0000 (13:49 +0100)
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 <dsavinea@redhat.com>
roles/ceph-facts/tasks/set_radosgw_address.yml

index e586a0401c5b08a4643d555b3fd8435f82eb1fbb..6eae737d74ccf065ec096a52da14c7982a3252a9 100644 (file)
@@ -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