]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
mon: use crush rules for non-container too
authorSébastien Han <seb@redhat.com>
Tue, 9 Jan 2018 12:54:50 +0000 (13:54 +0100)
committerSébastien Han <seb@redhat.com>
Thu, 11 Jan 2018 14:07:55 +0000 (15:07 +0100)
There is no reasons why we can't use crush rules when deploying
containers. So moving the inlcude in the main.yml so it can be called.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit f0787e64da45fdbefb2ff1376a0705fadf6a502d)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-mon/tasks/ceph_keys.yml
roles/ceph-mon/tasks/main.yml

index 29d9fb3c5b1f2e32bfb2b9d4ba2e80a00f6793d7..29eed9b7c2d4e1d54091cb77a5f847ab774d48eb 100644 (file)
     - 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
index 36b74b7d1b388095a1c694da54c75d4de6b5bd50..a29b4117cce31965a04e73bdd177fdc948913541 100644 (file)
   # 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: