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

This commit is contained in:
Jenkins 2017-05-16 15:06:31 +00:00 committed by Gerrit Code Review
commit 75913b869c
1 changed files with 8 additions and 1 deletions

View File

@ -39,11 +39,18 @@
retries: 5
delay: 2
- name: Retrieve checksum for venv download
uri:
url: "{{ watcher_venv_download_url | replace('tgz', 'checksum') }}"
return_content: yes
register: watcher_venv_checksum
when: watcher_venv_download | bool
- name: Attempt venv download
get_url:
url: "{{ watcher_venv_download_url }}"
dest: "/var/cache/{{ watcher_venv_download_url | basename }}"
checksum: "sha1:{{ lookup('url', watcher_venv_download_url | replace('tgz', 'checksum')) }}"
checksum: "sha1:{{ watcher_venv_checksum.content | trim }}"
register: watcher_get_venv
when: watcher_venv_download | bool