From: Guillaume Abrioux Date: Tue, 9 Apr 2019 15:38:01 +0000 (+0200) Subject: mon: remove useless delegate_to X-Git-Tag: v4.0.0rc4~50 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a718ddec50cf5ec659b746aaa954387864273420;p=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 (cherry picked from commit 631e5d31446e514a00428c345d0db9d4c9c9cdab) --- diff --git a/roles/ceph-mon/tasks/main.yml b/roles/ceph-mon/tasks/main.yml index ac158a084..893f9ff57 100644 --- a/roles/ceph-mon/tasks/main.yml +++ b/roles/ceph-mon/tasks/main.yml @@ -22,12 +22,11 @@ - 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 when: - - crush_rule_config \ No newline at end of file + - crush_rule_config