aboutsummaryrefslogtreecommitdiff
path: root/ansible/bifrost.yml
diff options
context:
space:
mode:
authorMark Goddard <mark@stackhpc.com>2018-11-12 10:28:35 +0000
committerMark Goddard <mark@stackhpc.com>2018-11-29 15:49:41 +0000
commitfca91fe83ed1f7223a4fdbed9e7803a3555bcc86 (patch)
treeb771d4827a87995df10e24f3812e354ddf685454 /ansible/bifrost.yml
parent4f21133ac4f63a23cebecd1b644bf9f0863d75b0 (diff)
downloadkolla-ansible-fca91fe83ed1f7223a4fdbed9e7803a3555bcc86.tar.gz
kolla-ansible-fca91fe83ed1f7223a4fdbed9e7803a3555bcc86.zip
Factor out OpenStack release detection playbook
We copy-paste the same play into various playbooks to detect openstack_release. This change factors that code into a separate playbook that is imported. Change-Id: I5fea005642b960080bf5e43455618dc24766c386
Diffstat (limited to 'ansible/bifrost.yml')
-rw-r--r--ansible/bifrost.yml18
1 files changed, 3 insertions, 15 deletions
diff --git a/ansible/bifrost.yml b/ansible/bifrost.yml
index 1769ce8e2..2adedcc1d 100644
--- a/ansible/bifrost.yml
+++ b/ansible/bifrost.yml
@@ -1,19 +1,7 @@
---
-- 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
+- import_playbook: detect-release.yml
+ vars:
+ detect_release_hosts: bifrost
- name: Apply role bifrost
hosts: bifrost