prep-zanata: fix stat typo
The field to access is "stat.exists"
- 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:
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:
