ceph-config: check for set_radosgw_address before importing task

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
pull/7502/head
Seena Fallah 2024-03-11 13:13:07 +01:00 committed by Guillaume Abrioux
parent f96c0441e3
commit 49ec2479ea
2 changed files with 4 additions and 2 deletions

View File

@ -171,7 +171,9 @@
ansible.builtin.import_role:
name: ceph-facts
tasks_from: 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: Generate Ceph file
openstack.config_template.config_template:

View File

@ -1,5 +1,5 @@
---
- name: Generate systemd ceph-mon target file
- name: Generate systemd ceph target file
ansible.builtin.copy:
src: ceph.target
dest: /etc/systemd/system/ceph.target