prep-zanata: fix stat typo

The field to access is "stat.exists"

Change-Id: Ib723624a20cc1fa04476c8117bcf903dddbe97ea
This commit is contained in:
Ian Wienand
2017-12-06 09:31:39 +11:00
parent 87b9ad4ed4
commit c4e864de27

View File

@@ -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: