Merge "Detect openstack_release variable in mariadb recovery playbooks"
This commit is contained in:
commit
f1759c3a1c
@ -1,4 +1,20 @@
|
||||
---
|
||||
- name: Detect openstack_release variable
|
||||
hosts: mariadb
|
||||
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
|
||||
|
||||
- name: Recover mariadb
|
||||
hosts: mariadb
|
||||
roles:
|
||||
|
Loading…
Reference in New Issue
Block a user