]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Speed up the some facts settings by running them once
authorTeoman ONAY <tonay@ibm.com>
Tue, 5 Sep 2023 10:32:53 +0000 (12:32 +0200)
committerTeoman ONAY <tonay@redhat.com>
Wed, 27 Sep 2023 07:16:30 +0000 (09:16 +0200)
Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit 72d4d207a0cc3b5ec5f8b4538b8e4bc9771bf451)

roles/ceph-dashboard/tasks/configure_dashboard.yml
roles/ceph-facts/tasks/set_radosgw_address.yml

index 40e2cba5a003d13452d74e94e2f3affacda4eae3..ad10b013f1913b354c07423c6b661f7613ffea49 100644 (file)
@@ -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, [])
index e1f50273ae06c6c7575ac064596fb63320b58314..b85bdc924dc05029cb6fc62b89502cc48c327db6 100644 (file)
@@ -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