adopt: convert legacy grafana-server groupname early

This is a follow up on PR #6332

cephadm-adopt.yml playbook is affected by the same bug

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1938658

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/6359/head
Guillaume Abrioux 2021-03-16 16:33:27 +01:00
parent ee1f0ce444
commit af95595c82
1 changed files with 10 additions and 0 deletions

View File

@ -23,6 +23,16 @@
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 and prepare system for cephadm - name: gather facts and prepare system for cephadm
hosts: hosts:
- "{{ mon_group_name|default('mons') }}" - "{{ mon_group_name|default('mons') }}"