diff --git a/tasks/glance_install.yml b/tasks/glance_install.yml index 1ebeba57..e82062fb 100644 --- a/tasks/glance_install.yml +++ b/tasks/glance_install.yml @@ -46,11 +46,18 @@ retries: 5 delay: 2 +- name: Retrieve checksum for venv download + uri: + url: "{{ glance_venv_download_url | replace('tgz', 'checksum') }}" + return_content: yes + register: glance_venv_checksum + when: glance_venv_download | bool + - name: Attempt venv download get_url: url: "{{ glance_venv_download_url }}" dest: "/var/cache/{{ glance_venv_download_url | basename }}" - checksum: "sha1:{{ lookup('url', glance_venv_download_url | replace('tgz', 'checksum')) }}" + checksum: "sha1:{{ glance_venv_checksum.content | trim }}" register: glance_get_venv when: glance_venv_download | bool