From 021c55530765395b6291c0befc7feaccb46546ca Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Thu, 17 Oct 2019 15:15:20 -0400 Subject: [PATCH] playbooks: show cluster status after dashboard We should show the ceph cluster status as the last task of the playbook. Signed-off-by: Dimitri Savineau (cherry picked from commit 47ce9c0d225ff0d39cf1f1bb982ca94531f476d1) --- site-container.yml.sample | 10 +++++----- site.yml.sample | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/site-container.yml.sample b/site-container.yml.sample index 301ecf83a..e43ade091 100644 --- a/site-container.yml.sample +++ b/site-container.yml.sample @@ -410,6 +410,11 @@ status: "Complete" end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" +- import_playbook: dashboard.yml + when: + - dashboard_enabled | bool + - groups.get(grafana_server_group_name, []) | length > 0 + - hosts: mons gather_facts: false become: True @@ -441,8 +446,3 @@ delegate_to: "{{ groups[mon_group_name][0] }}" run_once: true when: not ceph_status.failed - -- import_playbook: dashboard.yml - when: - - dashboard_enabled | bool - - groups.get(grafana_server_group_name, []) | length > 0 diff --git a/site.yml.sample b/site.yml.sample index cd2847cf8..ea5fbfd6e 100644 --- a/site.yml.sample +++ b/site.yml.sample @@ -435,6 +435,11 @@ status: "Complete" end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" +- import_playbook: dashboard.yml + when: + - dashboard_enabled | bool + - groups.get(grafana_server_group_name, []) | length > 0 + - hosts: mons gather_facts: false become: True @@ -455,8 +460,3 @@ delegate_to: "{{ groups[mon_group_name][0] }}" run_once: true when: not ceph_status.failed - -- import_playbook: dashboard.yml - when: - - dashboard_enabled | bool - - groups.get(grafana_server_group_name, []) | length > 0