Speed up the some facts settings by running them once

Signed-off-by: Teoman ONAY <tonay@ibm.com>
rhcs-4.3
Teoman ONAY 2023-09-05 12:32:53 +02:00
parent e832c9e308
commit fe0dd57f71
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