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
|
- name: Ensure correct checksum of cached client
|
||||||
assert: cached_client.checksum == "{{ zanata_client_checksum }}"
|
assert: cached_client.checksum == "{{ zanata_client_checksum }}"
|
||||||
when: cached_client.exists
|
when: cached_client.stat.exists
|
||||||
|
|
||||||
- name: Extract cached client tarball
|
- name: Extract cached client tarball
|
||||||
unarchive:
|
unarchive:
|
||||||
src: "/opt/cache/files/zanata-cli-{{ zanata_client_version }}-dist.tar.gz"
|
src: "/opt/cache/files/zanata-cli-{{ zanata_client_version }}-dist.tar.gz"
|
||||||
dest: "/opt/zanata"
|
dest: "/opt/zanata"
|
||||||
creates: "/opt/zanata/zanata-cli-{{ zanata_client_version }}/bin/zanata-cli"
|
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
|
- name: Download and extract zanata client tarball
|
||||||
unarchive:
|
unarchive:
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
remote_src: yes
|
remote_src: yes
|
||||||
dest: "/opt/zanata/"
|
dest: "/opt/zanata/"
|
||||||
creates: "/opt/zanata/zanata-cli-{{ zanata_client_version }}/bin/zanata-cli"
|
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
|
- name: ensure zanata-cli perms
|
||||||
file:
|
file:
|
||||||
|
|||||||
Reference in New Issue
Block a user