1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

move install test to last item copied (#213)

This commit is contained in:
georgejhunt 2017-09-11 09:21:07 -07:00 committed by GitHub
parent 092617e75d
commit 9489099ac7

View file

@ -9,6 +9,15 @@
- "{{ kiwix_content_path }}"
- "{{ iiab_zim_path }}/index"
- name: Check for kiwix-serve binary
stat: path={{ iiab_base }}/kiwix/bin/kiwix-serve
retister: kiwix_bin
- name: Set kiwix first pass
set_fact:
kiwix_first_pass: True
when: kiwix_bin.stat.exists is defined and not kiwix_bin.stat.exists
- name: Copy kiwix library file if needed
template: src={{ item }}
dest="{{ kiwix_library_xml }}"
@ -18,12 +27,7 @@
force=no
with_items:
- library.xml
register: kiwix_first_pass_test
- name: Set kiwix first pass
set_fact:
kiwix_first_pass: True
when: kiwix_first_pass_test.changed
when: kiwix_first_pass
- name: Copy test.zim file
copy: src=test.zim