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 <seenafallah@gmail.com>
pull/7481/head
Seena Fallah 2024-02-24 00:58:53 +01:00 committed by Guillaume Abrioux
parent 689578f22c
commit 9a7d2a624a
1 changed files with 3 additions and 1 deletions

View File

@ -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: