mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Reinforce multiarch & offline logic. Fail w/ explanation if kiwix-tools tarfile not in place.
This commit is contained in:
parent
f9d9f5746d
commit
fe30e1f461
1 changed files with 15 additions and 5 deletions
|
@ -17,17 +17,27 @@
|
|||
when: ansible_machine == "i686"
|
||||
# COMMENT OUT LINE ABOVE TO TEST i686 CODE PATH ON X86_64 (WORKS NOV 2017)
|
||||
|
||||
- debug:
|
||||
msg: "WARNING: kiwix-tools SOFTWARE APPEARS UNAVAILABLE FOR YOUR OS/ARCHITECTURE."
|
||||
when: not kiwix_src_file
|
||||
|
||||
- name: Download Kiwix software to /opt/iiab/downloads
|
||||
get_url:
|
||||
url: "{{ iiab_download_url }}/{{ kiwix_src_file }}"
|
||||
dest: "{{ downloads_dir }}/{{ kiwix_src_file }}"
|
||||
when: internet_available
|
||||
|
||||
- name: Check for /opt/iiab/downloads/{{ kiwix_src_file }}
|
||||
stat:
|
||||
path: "{{ downloads_dir }}/{{ kiwix_src_file }}"
|
||||
register: kiwix_src
|
||||
|
||||
- name: FAIL (force Ansible to exit) IF /opt/iiab/downloads/{{ kiwix_src_file }} doesn't exist
|
||||
fail:
|
||||
msg: "{ downloads_dir }}/{{ kiwix_src_file }} is REQUIRED in order to install Kiwix."
|
||||
when: not kiwix_src.stat.exists
|
||||
|
||||
- include_tasks: kiwix_install.yml
|
||||
when: kiwix_src_file is defined
|
||||
# when: kiwix_src_file is defined
|
||||
tags:
|
||||
- kiwix
|
||||
|
||||
- debug:
|
||||
msg: "WARNING: kiwix-tools SOFTWARE NOT FOUND FOR YOUR OS/ARCHITECTURE."
|
||||
when: not kiwix_src_file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue