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>
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: