2016-08-01 19:11:50 +00:00
|
|
|
---
|
2018-03-08 10:12:21 +00:00
|
|
|
- name: Detect openstack_release variable
|
|
|
|
hosts: bifrost
|
|
|
|
gather_facts: false
|
|
|
|
tasks:
|
|
|
|
- name: Get current kolla-ansible version number
|
|
|
|
local_action: command python -c "import pbr.version; print(pbr.version.VersionInfo('kolla-ansible'))"
|
|
|
|
register: kolla_ansible_version
|
|
|
|
changed_when: false
|
|
|
|
when: openstack_release == "auto"
|
|
|
|
|
|
|
|
- name: Set openstack_release variable
|
|
|
|
set_fact:
|
|
|
|
openstack_release: "{{ kolla_ansible_version.stdout }}"
|
|
|
|
when: openstack_release == "auto"
|
|
|
|
tags: always
|
|
|
|
|
2016-11-30 16:23:36 +01:00
|
|
|
- name: Apply role bifrost
|
2017-02-16 16:35:44 +00:00
|
|
|
hosts: bifrost
|
2016-08-01 19:11:50 +00:00
|
|
|
roles:
|
|
|
|
- { role: bifrost,
|
|
|
|
tags: bifrost}
|