From b1848ac957a9f32be432a3ca64fbb431da299f73 Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Sat, 24 Feb 2024 00:58:53 +0100 Subject: [PATCH] ceph-facts: make set_radosgw_address optional This can help to define custom rgw_instances with custom names and ports and addresses. Signed-off-by: Seena Fallah --- roles/ceph-facts/tasks/facts.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/ceph-facts/tasks/facts.yml b/roles/ceph-facts/tasks/facts.yml index e176ecc11..8cedcdd20 100644 --- a/roles/ceph-facts/tasks/facts.yml +++ b/roles/ceph-facts/tasks/facts.yml @@ -223,7 +223,9 @@ - name: Import_tasks set_radosgw_address.yml ansible.builtin.include_tasks: set_radosgw_address.yml - when: inventory_hostname in groups.get(rgw_group_name, []) + when: + - set_radosgw_address | default(true) + - inventory_hostname in groups.get(rgw_group_name, []) - name: Set_fact ceph_run_cmd ansible.builtin.set_fact: