mirror of https://github.com/ceph/ceph-ansible.git
purge-dashboard: check for legacy group name 'grafana-server'
When using the legacy group name 'grafana-server', this playbook will run but
won't remove properly all monitoring resources as expected.
Fixes: #7265
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit a9cb444be1
)
pull/7279/head
parent
1b13dc8752
commit
712b3c4e29
|
@ -31,6 +31,17 @@
|
||||||
invoking the playbook"
|
invoking the playbook"
|
||||||
when: ireallymeanit != 'yes'
|
when: ireallymeanit != 'yes'
|
||||||
|
|
||||||
|
- name: import_role ceph-defaults
|
||||||
|
import_role:
|
||||||
|
name: ceph-defaults
|
||||||
|
|
||||||
|
- name: check if a legacy grafana-server group exists
|
||||||
|
import_role:
|
||||||
|
name: ceph-facts
|
||||||
|
tasks_from: convert_grafana_server_group_name.yml
|
||||||
|
when: groups.get((grafana_server_group_name | default('grafana-server')), []) | length > 0
|
||||||
|
|
||||||
|
|
||||||
- name: gather facts on all hosts
|
- name: gather facts on all hosts
|
||||||
hosts:
|
hosts:
|
||||||
- "{{ mon_group_name|default('mons') }}"
|
- "{{ mon_group_name|default('mons') }}"
|
||||||
|
|
Loading…
Reference in New Issue