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 <gcharot@redhat.com>
(cherry picked from commit
a6d1922a2e70c36036ff130dc6b6b942101379ba)
# 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:
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