From 72d4d207a0cc3b5ec5f8b4538b8e4bc9771bf451 Mon Sep 17 00:00:00 2001 From: Teoman ONAY Date: Tue, 5 Sep 2023 12:32:53 +0200 Subject: [PATCH] Speed up the some facts settings by running them once Signed-off-by: Teoman ONAY --- roles/ceph-dashboard/tasks/configure_dashboard.yml | 1 + roles/ceph-facts/tasks/set_radosgw_address.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/roles/ceph-dashboard/tasks/configure_dashboard.yml b/roles/ceph-dashboard/tasks/configure_dashboard.yml index 40e2cba5a..ad10b013f 100644 --- a/roles/ceph-dashboard/tasks/configure_dashboard.yml +++ b/roles/ceph-dashboard/tasks/configure_dashboard.yml @@ -34,6 +34,7 @@ name: ceph-facts tasks_from: set_radosgw_address.yml loop: "{{ groups.get(rgw_group_name, []) }}" + run_once: true loop_control: loop_var: ceph_dashboard_call_item when: inventory_hostname in groups.get(rgw_group_name, []) diff --git a/roles/ceph-facts/tasks/set_radosgw_address.yml b/roles/ceph-facts/tasks/set_radosgw_address.yml index e1f50273a..b85bdc924 100644 --- a/roles/ceph-facts/tasks/set_radosgw_address.yml +++ b/roles/ceph-facts/tasks/set_radosgw_address.yml @@ -51,6 +51,7 @@ loop: "{{ groups.get(rgw_group_name, []) }}" delegate_to: "{{ item }}" delegate_facts: true + run_once: true when: ip_version == 'ipv4' - name: set_fact _radosgw_address to radosgw_interface - ipv6 @@ -59,6 +60,7 @@ loop: "{{ groups.get(rgw_group_name, []) }}" delegate_to: "{{ item }}" delegate_facts: true + run_once: true when: ip_version == 'ipv6' - name: set_fact rgw_instances without rgw multisite -- 2.39.5