Speed up the some facts settings by running them once

Signed-off-by: Teoman ONAY <tonay@ibm.com>
pull/7466/head
Teoman ONAY 2023-09-05 12:32:53 +02:00 committed by Teoman ONAY
parent 271fd82942
commit 72d4d207a0
2 changed files with 3 additions and 0 deletions

View 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, [])

View 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