From af3c1b4c1a9e80929070bd2ca1d6db3e99df866c Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Mon, 16 Dec 2019 11:03:21 -0500 Subject: [PATCH] ceph-infra: replace hardcoded grafana group name The grafana-server group name was hardcoded for the grafana/prometheus firewalld tasks condition. We should we the associated variable : grafana_server_group_name Signed-off-by: Dimitri Savineau (cherry picked from commit 2c06678cdeed20f0d40f1693abbf8678250c25ea) --- roles/ceph-infra/tasks/dashboard_firewall.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/ceph-infra/tasks/dashboard_firewall.yml b/roles/ceph-infra/tasks/dashboard_firewall.yml index 4c3913e1e..f3166355d 100644 --- a/roles/ceph-infra/tasks/dashboard_firewall.yml +++ b/roles/ceph-infra/tasks/dashboard_firewall.yml @@ -52,4 +52,6 @@ permanent: true immediate: true state: enabled - when: inventory_hostname in groups.get('grafana-server', []) + when: + - grafana_server_group_name is defined + - grafana_server_group_name in group_names