Fix for lookup and get_url occuring in different places
We use an SSH bastion host which we do our deployment through. The
deployment host doesn't have direct access to the same network as the
host. As a result the venv local checksum lookup fails.
I have described this here:
https://bugs.launchpad.net/openstack-ansible/+bug/1689283
This is a simple fix for this problem, assuming everything is good it
will need repeating in multiple places in the code base.
Change-Id: Ifee1c551ce596c50b9b9af7b5f390e995a6c7b67
(cherry picked from commit ce46b7b16c
)
This commit is contained in:
parent
7c9ab5d3ac
commit
9641155f61
@ -73,11 +73,18 @@
|
||||
retries: 5
|
||||
delay: 2
|
||||
|
||||
- name: Retrieve checksum for venv download
|
||||
uri:
|
||||
url: "{{ ceilometer_venv_download_url | replace('tgz', 'checksum') }}"
|
||||
return_content: yes
|
||||
register: ceilometer_venv_checksum
|
||||
when: ceilometer_venv_download | bool
|
||||
|
||||
- name: Attempt venv download
|
||||
get_url:
|
||||
url: "{{ ceilometer_venv_download_url }}"
|
||||
dest: "/var/cache/{{ ceilometer_venv_download_url | basename }}"
|
||||
checksum: "sha1:{{ lookup('url', ceilometer_venv_download_url | replace('tgz', 'checksum')) }}"
|
||||
checksum: "sha1:{{ ceilometer_venv_checksum.content | trim }}"
|
||||
register: ceilometer_get_venv
|
||||
when: ceilometer_venv_download | bool
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user