mirror of https://github.com/ceph/ceph-ansible.git
mon: remove useless delegate_to
Let's use a condition to run this task only on the first mon.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 631e5d3144
)
pull/3842/head
parent
a4d75c6ea6
commit
a718ddec50
|
@ -22,12 +22,11 @@
|
||||||
|
|
||||||
- name: include secure_cluster.yml
|
- name: include secure_cluster.yml
|
||||||
include_tasks: secure_cluster.yml
|
include_tasks: secure_cluster.yml
|
||||||
delegate_to: "{{ groups[mon_group_name][0] }}"
|
|
||||||
run_once: true
|
|
||||||
when:
|
when:
|
||||||
- secure_cluster
|
- secure_cluster
|
||||||
|
- inventory_hostname == groups[mon_group_name] | first
|
||||||
|
|
||||||
- name: crush_rules.yml
|
- name: crush_rules.yml
|
||||||
include_tasks: crush_rules.yml
|
include_tasks: crush_rules.yml
|
||||||
when:
|
when:
|
||||||
- crush_rule_config
|
- crush_rule_config
|
||||||
|
|
Loading…
Reference in New Issue