]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge-container: move facts gathering after ceph-defaults role import
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 12 Dec 2018 15:34:14 +0000 (16:34 +0100)
committerSébastien Han <seb@redhat.com>
Mon, 7 Jan 2019 08:14:10 +0000 (09:14 +0100)
This task has to be called after the role `ceph-defaults` has been
played, otherwise, `mon_group_name` will never be known.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit a12de3e048e1b62b8cbf6bc6d089db1bb880d37c)

infrastructure-playbooks/purge-docker-cluster.yml

index 218066f38891978e1e722b43a2e6d5a1be1cf000..7d7ae55995b5f0ef212dde243e4432a3c0b6f7c1 100644 (file)
     setup:
     delegate_to: "{{ item }}"
     delegate_facts: True
-    with_items: "{{ groups.get(mon_group_name, 'mons') }}"
+    with_items: "{{ groups.get(mon_group_name | default('mons')) }}"
+
+  - import_role:
+      name: ceph-facts
+      private: false
 
   - name: get all the running osds
     shell: |
       name: ceph-defaults
       private: false
 
+  - import_role:
+      name: ceph-facts
+      private: false
+
   - name: show container list on all the nodes (should be empty)
     command: >
       docker ps --filter='name=ceph' -a -q