diff --git a/roles/ceph-mon/tasks/ceph_keys.yml b/roles/ceph-mon/tasks/ceph_keys.yml index 06c257026..7a54347df 100644 --- a/roles/ceph-mon/tasks/ceph_keys.yml +++ b/roles/ceph-mon/tasks/ceph_keys.yml @@ -76,11 +76,6 @@ - ceph_release_num[ceph_release] > ceph_release_num.jewel with_items: "{{ groups.get(mgr_group_name, []) }}" -- name: crush_rules.yml - include: crush_rules.yml - when: - - crush_rule_config - - name: find ceph keys shell: ls -1 /etc/ceph/*.keyring changed_when: false diff --git a/roles/ceph-mon/tasks/main.yml b/roles/ceph-mon/tasks/main.yml index 36b74b7d1..a29b4117c 100644 --- a/roles/ceph-mon/tasks/main.yml +++ b/roles/ceph-mon/tasks/main.yml @@ -22,6 +22,11 @@ # this avoids the bug mentioned here: https://github.com/ansible/ansible/issues/18206 static: no +- name: crush_rules.yml + include: crush_rules.yml + when: + - crush_rule_config + - name: include secure_cluster.yml include: secure_cluster.yml when: