From 0c6d5a1f152bfab8bc575bc814f7324f450f1e23 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 e176ecc110..8cedcdd20e 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: