From 49ec2479ea347d29616feec52386562dfa406676 Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Mon, 11 Mar 2024 13:13:07 +0100 Subject: [PATCH] ceph-config: check for set_radosgw_address before importing task Signed-off-by: Seena Fallah --- roles/ceph-config/tasks/main.yml | 4 +++- roles/ceph-container-common/tasks/main.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/ceph-config/tasks/main.yml b/roles/ceph-config/tasks/main.yml index e7fbf8e0b0..acfee21d1a 100644 --- a/roles/ceph-config/tasks/main.yml +++ b/roles/ceph-config/tasks/main.yml @@ -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: diff --git a/roles/ceph-container-common/tasks/main.yml b/roles/ceph-container-common/tasks/main.yml index 371e3436f0..6a36e8b660 100644 --- a/roles/ceph-container-common/tasks/main.yml +++ b/roles/ceph-container-common/tasks/main.yml @@ -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