diff --git a/ansible/roles/ceph/tasks/precheck.yml b/ansible/roles/ceph/tasks/precheck.yml index 1b58cb09fb..cad059fbf1 100644 --- a/ansible/roles/ceph/tasks/precheck.yml +++ b/ansible/roles/ceph/tasks/precheck.yml @@ -15,3 +15,8 @@ when: - container_facts['ceph_rgw'] is not defined - inventory_hostname in groups['ceph-rgw'] + +- name: Check whether the swift service is enabled + local_action: fail msg='Ceph-rgw-keystone is conflicts with swift, you should only enable one of them' + when: enable_swift | bool + run_once: True diff --git a/ansible/roles/ceph/tasks/start_rgw_keystone.yml b/ansible/roles/ceph/tasks/start_rgw_keystone.yml index aac281a6f9..9a031c95fc 100644 --- a/ansible/roles/ceph/tasks/start_rgw_keystone.yml +++ b/ansible/roles/ceph/tasks/start_rgw_keystone.yml @@ -1,9 +1,4 @@ --- -- name: Check whether the swift service is enabled - local_action: fail msg='Ceph-rgw-keystone is conflicted with swift, you should only enable one of them' - when: enable_swift | bool - run_once: True - - name: Creating the Swift service and endpoint kolla_toolbox: module_name: kolla_keystone_service