File tree Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change 13
13
lookup('env', 'OS_USERNAME') != 'octavia' or
14
14
lookup('env', 'OS_PROJECT_NAME') != 'service'
15
15
16
+ - name : Get image checksum
17
+ stat :
18
+ path : " {{ image_cache_path }}/amphora-x64-haproxy-{{ openstack_release }}.qcow2"
19
+ checksum_algorithm : md5
20
+ changed_when : false
21
+ register : image_checksum
22
+
23
+ - name : Assert that Amphora image exists
24
+ assert :
25
+ that : image_checksum.stat.exists
26
+ fail_msg : |
27
+ The amphora image: {{ image_cache_path }}/amphora-x64-haproxy-{{ openstack_release }}.qcow2
28
+ does not exist. Did you build the image?
29
+
16
30
- name : Set up openstack virtualenv
17
31
pip :
18
32
virtualenv : " {{ venv }}"
34
48
image : amphora-x64-haproxy
35
49
register : image_info
36
50
37
- - name : Get image checksum
38
- stat :
39
- path : " {{ image_cache_path }}/amphora-x64-haproxy-{{ openstack_release }}.qcow2"
40
- checksum_algorithm : md5
41
- changed_when : false
42
- register : image_checksum
43
- when : image_info.image
44
-
45
- - name : Assert that Amphora image exists
46
- assert :
47
- that : image_checksum.stat.exists
48
- fail_msg : |
49
- The amphora image: {{ image_cache_path }}/amphora-x64-haproxy-{{ openstack_release }}.qcow2
50
- does not exist. Did you build the image?
51
-
52
51
- name : Ensure Octavia Amphora image is renamed
53
52
vars :
54
53
ansible_python_interpreter : " {{ venv }}/bin/python"
You can’t perform that action at this time.
0 commit comments