From c985dbfa68dfe084249d1138a42763619f763e4c Mon Sep 17 00:00:00 2001 From: Greg Charot Date: Fri, 2 Feb 2018 15:12:18 +0100 Subject: [PATCH] mon: Fixed crush_rule_config for containerised deployment. Was called too early, container was not yet started so the commands failed. Moved the section after include docker/main.yml Signed-off-by: Greg Charot (cherry picked from commit a6d1922a2e70c36036ff130dc6b6b942101379ba) --- roles/ceph-mon/tasks/main.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/roles/ceph-mon/tasks/main.yml b/roles/ceph-mon/tasks/main.yml index a29b4117c..fab74a43d 100644 --- a/roles/ceph-mon/tasks/main.yml +++ b/roles/ceph-mon/tasks/main.yml @@ -22,11 +22,6 @@ # 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: @@ -37,6 +32,12 @@ include: docker/main.yml when: containerized_deployment +- name: crush_rules.yml + include: crush_rules.yml + when: + - crush_rule_config + - inventory_hostname == groups.get(mon_group_name) | last + - name: include set_osd_pool_default_pg_num.yml include: set_osd_pool_default_pg_num.yml -- 2.39.5