File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ - name : Check Kolla-Ansible version
3+ tags : kolla-version-check
4+ hosts : localhost
5+ gather_facts : false
6+ tasks :
7+ - name : Get installed Kolla-Ansible commit
8+ ansible.builtin.command :
9+ cmd : git describe --tags
10+ chdir : " {{ lookup('ansible.builtin.env', 'KOLLA_SOURCE_PATH') }}"
11+ register : kolla_ansible_current_version
12+
13+ - name : Check installed Kolla-Ansible version is the latest
14+ ansible.builtin.assert :
15+ that : " stackhpc_kolla_ansible_source_version in kolla_ansible_current_version.stdout"
16+ fail_msg : |
17+ Kolla-Ansible must use the expected version before continuing.
18+
19+ Current Kolla-Ansible version: {{ kolla_ansible_current_version.stdout }}
20+ Expected Kolla-Ansible version: {{ stackhpc_kolla_ansible_source_version }}
21+
22+ Upgrade Kolla-Ansible by running: kayobe control host upgrade
23+ success_msg : |
24+ Kolla-Ansible running at version: {{ kolla_ansible_current_version.stdout }}
You can’t perform that action at this time.
0 commit comments