Merge "Fix for lookup and get_url occuring in different places"

This commit is contained in:
Zuul 2017-12-29 08:27:58 +00:00 committed by Gerrit Code Review
commit 834a565d40
1 changed files with 11 additions and 1 deletions

View File

@ -49,11 +49,21 @@
- zaqar-install
- zaqar-pip-packages
- name: Retrieve checksum for venv download
uri:
url: "{{ zaqar_venv_download_url | replace('tgz', 'checksum') }}"
return_content: yes
register: zaqar_venv_checksum
when: zaqar_venv_download | bool
tags:
- zaqar-install
- zaqar-pip-packages
- name: Attempt venv download
get_url:
url: "{{ zaqar_venv_download_url }}"
dest: "/var/cache/{{ zaqar_venv_download_url | basename }}"
checksum: "sha1:{{ lookup('url', zaqar_venv_download_url | replace('tgz', 'checksum')) }}"
checksum: "sha1:{{ zaqar_venv_checksum.content | trim }}"
register: zaqar_get_venv
when: zaqar_venv_download | bool
tags: