File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change 34
34
state : directory
35
35
register : kayobe_temp_dir
36
36
37
- - name : Clone Kayobe
38
- ansible.builtin.git :
39
- repo : https://github.com/stackhpc/kayobe.git
40
- dest : " {{ kayobe_temp_dir.path }}/kayobe-git"
41
- version : stackhpc/{{ openstack_release }}
42
-
43
37
- name : Get expected Kayobe version
44
38
ansible.builtin.shell :
45
39
cmd : set -o pipefail && grep -o kayobe@.*$ {{ requirements_path }} | cut -d @ -f 3
46
40
executable : /usr/bin/bash
47
41
register : kayobe_expected_version
48
42
49
- - name : Checkout expected Kayobe version
50
- ansible.builtin.command :
51
- cmd : git checkout {{ kayobe_expected_version.stdout }}
52
- chdir : " {{ kayobe_temp_dir.path }}/kayobe-git"
43
+ - name : Clone Kayobe at the expected version
44
+ ansible.builtin.git :
45
+ repo : https://github.com/stackhpc/kayobe.git
46
+ dest : " {{ kayobe_temp_dir.path }}/kayobe-git"
47
+ version : " {{ kayobe_expected_version.stdout }}"
53
48
54
49
- name : Get tag from current Kayobe commit
55
50
ansible.builtin.command :
68
63
state : absent
69
64
path : " {{ kayobe_temp_dir.path }}"
70
65
71
- - name : Check installed Kayobe version is the latest
66
+ - name : Check installed Kayobe version matches
72
67
ansible.builtin.assert :
73
68
that : kayobe_current_commit.stdout in kayobe_expected_commit.stdout
74
69
fail_msg : |
You can’t perform that action at this time.
0 commit comments