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 }}"
|
||||
- "{{ 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
|
||||
|
|
Loading…
Add table
Reference in a new issue