Skip to content

Commit

Permalink
Speed up the some facts settings by running them once
Browse files Browse the repository at this point in the history
Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit 72d4d20)
  • Loading branch information
asm0deuz committed Sep 27, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 539fee8 commit 3f15340
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/ceph-dashboard/tasks/configure_dashboard.yml
Original file line number Diff line number Diff line change
@@ -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, [])
2 changes: 2 additions & 0 deletions roles/ceph-facts/tasks/set_radosgw_address.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3f15340

Please sign in to comment.