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: I6112927b2aac2870530838529d464fd6fea16e57
This commit is contained in:
parent
2fbc0da8b7
commit
3f6ee36dbb
@ -44,11 +44,18 @@
|
|||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
|
|
||||||
|
- name: Retrieve checksum for venv download
|
||||||
|
uri:
|
||||||
|
url: "{{ octavia_venv_download_url | replace('tgz', 'checksum') }}"
|
||||||
|
return_content: yes
|
||||||
|
register: octavia_venv_checksum
|
||||||
|
when: not octavia_developer_mode | bool
|
||||||
|
|
||||||
- name: Attempt venv download
|
- name: Attempt venv download
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ octavia_venv_download_url }}"
|
url: "{{ octavia_venv_download_url }}"
|
||||||
dest: "/var/cache/{{ octavia_venv_download_url | basename }}"
|
dest: "/var/cache/{{ octavia_venv_download_url | basename }}"
|
||||||
checksum: "sha1:{{ lookup('url', octavia_venv_download_url | replace('tgz', 'checksum')) }}"
|
checksum: "sha1:{{ octavia_venv_checksum.content | trim }}"
|
||||||
register: octavia_get_venv
|
register: octavia_get_venv
|
||||||
when: not octavia_developer_mode | bool
|
when: not octavia_developer_mode | bool
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user