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
Guillaume Abrioux 2019-04-09 17:38:01 +02:00 committed by mergify[bot]
parent a4d75c6ea6
commit a718ddec50
1 changed files with 2 additions and 3 deletions

View File

@ -22,10 +22,9 @@
- name: include secure_cluster.yml
include_tasks: secure_cluster.yml
delegate_to: "{{ groups[mon_group_name][0] }}"
run_once: true
when:
- secure_cluster
- inventory_hostname == groups[mon_group_name] | first
- name: crush_rules.yml
include_tasks: crush_rules.yml