]> 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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 10 Jan 2018 14:21:36 +0000 (15:21 +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>
roles/ceph-mon/tasks/ceph_keys.yml
roles/ceph-mon/tasks/main.yml

index 06c257026bb1ddd3b74f14e88e2aca5ce4e348e7..7a54347df2478dce844878d43a03d86a259eb789 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: