]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: fix deploy playbook for ansible~=2.6,<2.7 29075/head
authorAndrew Schoen <aschoen@redhat.com>
Tue, 16 Jul 2019 15:29:40 +0000 (10:29 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 16 Jul 2019 15:29:40 +0000 (10:29 -0500)
When testing the lumionus and mimic branch the import_role
ansible feature does not work as expected. Variables created by one
role is not available to the next role called when using
import_role. To fix this, we need to use the roles keyword instead.

This commit is only applies to luminous and mimic and should
only be applied there.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
src/ceph-volume/ceph_volume/tests/functional/playbooks/deploy.yml

index b334968a5a9269598ed371752538ed126a6a4a8b..a6aea8b51228eed291ad13fa53247b723b1c4d95 100644 (file)
       set_fact:
         is_atomic: '{{ stat_ostree.stat.exists }}'
 
-  tasks:
-    - import_role:
-        name: ceph-defaults
-    - import_role:
-        name: ceph-validate
+  roles:
+    - ceph-defaults
+    - ceph-validate
 
 - hosts:
   - mons
   gather_facts: false
   become: True
   any_errors_fatal: true
+  roles:
+    - ceph-defaults
+    - ceph-facts
+    - ceph-handler
+    - ceph-common
+
   tasks:
-    - import_role:
-        name: ceph-defaults
-    - import_role:
-        name: ceph-facts
-    - import_role:
-        name: ceph-handler
-    - import_role:
-        name: ceph-common
 
     - name: rsync ceph-volume to test nodes on centos
       synchronize: