f9899fbfc1
Change-Id: Icb9b097299011cc09f3012bbee9629a5457c920c Closes-Bug: #1681316
26 lines
707 B
YAML
26 lines
707 B
YAML
---
|
|
- 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:
|
|
- { role: mariadb,
|
|
tags: mariadb,
|
|
when: enable_mariadb | bool }
|
|
vars:
|
|
mariadb_recover: true
|