File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 32
32
33
33
- name : Ensure dependencies are installed
34
34
ansible.builtin.pip :
35
- name : openstacksdk
35
+ name :
36
+ - openstacksdk
37
+ - python-openstackclient
36
38
37
39
- name : Upload an image to Glance
38
40
openstack.cloud.image :
45
47
visibility : shared
46
48
register : image
47
49
48
- - name : Ensure dependencies are installed
49
- pip :
50
- name : python-openstackclient
51
- virtualenv : " {{ ansible_python_interpreter | dirname | dirname }}"
52
-
53
50
# Add the image to the chosen project
54
51
- name : Add image to stackhpc-dev project
55
- command : " {{ ansible_python_interpreter | dirname | dirname }}/bin/ openstack image add project {{ image.image.id }} '{{ lookup('ansible.builtin.env', 'HOST_IMAGE_BUILD_SHARE_PROJECT_ID') }}'"
52
+ ansible.builtin. command : " openstack image add project {{ image.image.id }} '{{ lookup('ansible.builtin.env', 'HOST_IMAGE_BUILD_SHARE_PROJECT_ID') }}'"
56
53
57
54
# Accept the image in the receiving project
58
55
- name : Accept image membership in stackhpc-dev project
59
- command : " {{ ansible_python_interpreter | dirname | dirname }}/bin/ openstack image set {{ image.image.id }} --project '{{ lookup('ansible.builtin.env', 'HOST_IMAGE_BUILD_SHARE_PROJECT_ID') }}' --accept"
56
+ ansible.builtin. command : " openstack image set {{ image.image.id }} --project '{{ lookup('ansible.builtin.env', 'HOST_IMAGE_BUILD_SHARE_PROJECT_ID') }}' --accept"
60
57
61
58
always :
62
59
- name : Remove clouds.yaml
You can’t perform that action at this time.
0 commit comments