From 1a610df02be4383139c72657cc3a44ddc240eb84 Mon Sep 17 00:00:00 2001 From: Vishal Kanaujia Date: Fri, 8 Jun 2018 12:34:49 +0530 Subject: [PATCH] Fix to run secure cluster only once in a run The current secure cluster play runs with all the monitors. The rerun of this task is unnecessary and can be skipped. Fixes: #2737 Signed-off-by: Vishal Kanaujia --- roles/ceph-mon/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/ceph-mon/tasks/main.yml b/roles/ceph-mon/tasks/main.yml index ea7d120f0..1b212f77d 100644 --- a/roles/ceph-mon/tasks/main.yml +++ b/roles/ceph-mon/tasks/main.yml @@ -21,6 +21,8 @@ - name: include secure_cluster.yml include: secure_cluster.yml + delegate_to: "{{ groups[mon_group_name][0] }}" + run_once: true when: - secure_cluster - not containerized_deployment -- 2.39.5