2017-06-04 16:41:04 +00:00
|
|
|
#- name: Set kiwix source file name i686
|
|
|
|
# set_fact:
|
|
|
|
# kiwix_src_file: "kiwix-linux-i686.tar.bz2"
|
|
|
|
# kiwix_src_bin_only: False
|
|
|
|
# when: ansible_machine == "i686"
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-11-14 06:28:15 +00:00
|
|
|
- name: "Set Kiwix filename to d/l: kiwix-tools_linux64_2017-11-12.tar.gz (x86_64)"
|
2017-05-27 18:09:50 +00:00
|
|
|
set_fact:
|
2017-11-13 14:53:22 +00:00
|
|
|
kiwix_src_file: "kiwix-tools_linux64_2017-11-12.tar.gz"
|
2017-06-04 16:41:04 +00:00
|
|
|
kiwix_src_bin_only: True
|
2017-05-27 18:09:50 +00:00
|
|
|
when: ansible_machine == "x86_64"
|
|
|
|
|
2017-11-14 06:28:15 +00:00
|
|
|
- name: "Set Kiwix filename to d/l: kiwix-tools_armhf_2017-11-12.tar.gz (armv6l or armv71)"
|
2017-05-27 18:09:50 +00:00
|
|
|
set_fact:
|
2017-11-13 14:53:22 +00:00
|
|
|
kiwix_src_file: "kiwix-tools_armhf_2017-11-12.tar.gz"
|
2017-05-27 18:09:50 +00:00
|
|
|
kiwix_src_bin_only: True
|
2017-08-31 17:09:03 +00:00
|
|
|
when: ansible_machine == "armv7l" or ansible_machine == "armv6l"
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-11-14 05:24:11 +00:00
|
|
|
- name: Download the Kiwix software to /opt/iiab/downloads
|
|
|
|
get_url: url="{{ iiab_download_url }}/{{ kiwix_src_file }}" dest="{{ downloads_dir }}/{{ kiwix_src_file }}"
|
2017-08-30 02:21:51 +00:00
|
|
|
when: internet_available
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-10-31 03:55:24 +00:00
|
|
|
- include_tasks: kiwix_install.yml
|
2017-05-27 18:09:50 +00:00
|
|
|
when: kiwix_src_file is defined
|
|
|
|
tags:
|
|
|
|
- kiwix
|
|
|
|
|
2017-11-14 05:24:11 +00:00
|
|
|
- debug: msg="WARNING kiwix source is not defined for your platform"
|
2017-05-27 18:09:50 +00:00
|
|
|
when: not kiwix_src_file
|