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