prep-zanata: fix stat typo
The field to access is "stat.exists" Change-Id: Ib723624a20cc1fa04476c8117bcf903dddbe97ea
This commit is contained in:
@@ -22,14 +22,14 @@
|
||||
|
||||
- name: Ensure correct checksum of cached client
|
||||
assert: cached_client.checksum == "{{ zanata_client_checksum }}"
|
||||
when: cached_client.exists
|
||||
when: cached_client.stat.exists
|
||||
|
||||
- name: Extract cached client tarball
|
||||
unarchive:
|
||||
src: "/opt/cache/files/zanata-cli-{{ zanata_client_version }}-dist.tar.gz"
|
||||
dest: "/opt/zanata"
|
||||
creates: "/opt/zanata/zanata-cli-{{ zanata_client_version }}/bin/zanata-cli"
|
||||
when: cached_client.exists
|
||||
when: cached_client.stat.exists
|
||||
|
||||
- name: Download and extract zanata client tarball
|
||||
unarchive:
|
||||
@@ -37,7 +37,7 @@
|
||||
remote_src: yes
|
||||
dest: "/opt/zanata/"
|
||||
creates: "/opt/zanata/zanata-cli-{{ zanata_client_version }}/bin/zanata-cli"
|
||||
when: not cached_client.exists
|
||||
when: not cached_client.stat.exists
|
||||
|
||||
- name: ensure zanata-cli perms
|
||||
file:
|
||||
|
||||
Reference in New Issue
Block a user