]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
adopt: convert legacy grafana-server groupname early
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 16 Mar 2021 15:33:27 +0000 (16:33 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 18 Mar 2021 07:56:44 +0000 (08:56 +0100)
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>
(cherry picked from commit af95595c82963a78966b52f3cec31e35cbde89bf)

infrastructure-playbooks/cephadm-adopt.yml

index 7cad008df6eb4e58e1a1369899b68b77f4da6fcf..a47ee3f5df4f8f0eac8e94f3b830227850135c6c 100644 (file)
            invoking the playbook
       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
   hosts:
     - "{{ mon_group_name|default('mons') }}"