Skip to content

Commit

Permalink
ceph-config: check for set_radosgw_address before importing task
Browse files Browse the repository at this point in the history
Signed-off-by: Seena Fallah <[email protected]>
  • Loading branch information
clwluvw authored and guits committed Mar 14, 2024
1 parent f96c044 commit 49ec247
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion roles/ceph-config/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion roles/ceph-container-common/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 49ec247

Please sign in to comment.