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:
parent
092617e75d
commit
9489099ac7
1 changed files with 10 additions and 6 deletions
|
@ -9,6 +9,15 @@
|
||||||
- "{{ kiwix_content_path }}"
|
- "{{ kiwix_content_path }}"
|
||||||
- "{{ iiab_zim_path }}/index"
|
- "{{ 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
|
- name: Copy kiwix library file if needed
|
||||||
template: src={{ item }}
|
template: src={{ item }}
|
||||||
dest="{{ kiwix_library_xml }}"
|
dest="{{ kiwix_library_xml }}"
|
||||||
|
@ -18,12 +27,7 @@
|
||||||
force=no
|
force=no
|
||||||
with_items:
|
with_items:
|
||||||
- library.xml
|
- library.xml
|
||||||
register: kiwix_first_pass_test
|
when: kiwix_first_pass
|
||||||
|
|
||||||
- name: Set kiwix first pass
|
|
||||||
set_fact:
|
|
||||||
kiwix_first_pass: True
|
|
||||||
when: kiwix_first_pass_test.changed
|
|
||||||
|
|
||||||
- name: Copy test.zim file
|
- name: Copy test.zim file
|
||||||
copy: src=test.zim
|
copy: src=test.zim
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue