2019-03-05 03:44:32 +00:00
|
|
|
# kiwix_install: True
|
|
|
|
# kiwix_enabled: True
|
2019-03-05 03:31:13 +00:00
|
|
|
|
2019-03-05 03:44:32 +00:00
|
|
|
# kiwix_port: 3000
|
2019-03-05 18:26:58 +00:00
|
|
|
# iiab_zim_path: "{{ content_base }}/zims" # /library/zims
|
2019-03-05 03:31:13 +00:00
|
|
|
|
|
|
|
# All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml
|
|
|
|
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
|
|
|
|
|
2018-03-27 15:48:31 +00:00
|
|
|
|
2023-05-13 23:23:46 +00:00
|
|
|
# ONLINE UPGRADE INSTRUCTIONS:
|
|
|
|
# (1) VERIFY VARS IN /etc/iiab/local_vars.yml
|
2020-02-14 01:31:34 +00:00
|
|
|
# kiwix_install: True
|
|
|
|
# kiwix_enabled: True
|
2023-05-13 23:23:46 +00:00
|
|
|
# (2) RUN: cd /opt/iiab/iiab; sudo ./runrole --reinstall kiwix
|
2018-03-27 15:48:31 +00:00
|
|
|
|
2017-11-26 14:04:07 +00:00
|
|
|
|
2020-02-14 01:31:34 +00:00
|
|
|
# FYI /library/zims contains 3 important things:
|
2017-11-26 20:49:13 +00:00
|
|
|
# - library.xml
|
2020-01-11 17:15:37 +00:00
|
|
|
# - content = directory for all *.zim's
|
|
|
|
# - index = directory for legacy *.zim.idx's
|
2017-06-09 23:25:56 +00:00
|
|
|
kiwix_library_xml: "{{ iiab_zim_path }}/library.xml"
|
2017-11-26 14:04:07 +00:00
|
|
|
|
2022-10-04 23:09:04 +00:00
|
|
|
kiwix_base_url: https://download.kiwix.org/release/kiwix-tools/
|
|
|
|
#kiwix_base_url: https://download.kiwix.org/nightly/2022-10-04/
|
2022-10-05 00:24:06 +00:00
|
|
|
#kiwix_base_url: "{{ iiab_download_url }}/" # e.g. https://download.iiab.io/packages/
|
2022-10-04 23:09:04 +00:00
|
|
|
|
2023-05-14 13:06:29 +00:00
|
|
|
kiwix_arch_dict: # 'dpkg --print-architecture' key would be: (to mitigate #3516 in future, if truly nec?)
|
2023-05-13 23:23:46 +00:00
|
|
|
#i386: # ?
|
|
|
|
i686: i586 # ?
|
|
|
|
x86_64: x86_64 # amd64
|
2023-06-12 18:25:12 +00:00
|
|
|
armv6l: armv6 # armhf
|
|
|
|
armv7l: armv8 # armhf BEWARE: armhf version of kiwix-tools suddenly FAILS on 64-bit RasPiOS, since 3.5.0 released 2023-04-28 -- #3574, PR #3576
|
2023-05-13 23:23:46 +00:00
|
|
|
aarch64: aarch64 # arm64 BEWARE: "32-bit" RasPiOS suddenly boots 64-bit kernel since March 2023 -- #3516, explained at https://github.com/iiab/iiab/pull/3422#issuecomment-1533441463
|
2022-10-04 23:09:04 +00:00
|
|
|
|
2022-10-04 23:49:19 +00:00
|
|
|
# ansible_architecture might also work, if not quite as well:
|
2022-10-04 23:09:04 +00:00
|
|
|
# https://stackoverflow.com/questions/66828315/what-is-the-difference-between-ansible-architecture-and-ansible-machine-on-a/66828837#66828837
|
2022-10-04 23:49:19 +00:00
|
|
|
# CLAIM: 'ansible_machine might be "i686", whereas ansible_architecture on the same host would be "i386"'
|
|
|
|
# https://stackoverflow.com/questions/44713880/how-do-i-make-decision-based-on-arch-in-ansible-playbooks/44714226#44714226
|
2022-10-04 23:09:04 +00:00
|
|
|
kiwix_arch: "{{ kiwix_arch_dict[ansible_machine] | default('unsupported') }}"
|
|
|
|
|
|
|
|
# Latest official kiwix-tools release, per Kiwix permalink redirects:
|
|
|
|
# https://www.kiwix.org/en/downloads/kiwix-serve/
|
|
|
|
# https://github.com/kiwix/container-images/issues/236
|
2023-06-13 02:08:51 +00:00
|
|
|
# https://github.com/kiwix/kiwix-tools/issues/623
|
2022-10-04 23:09:04 +00:00
|
|
|
kiwix_tar_gz: "kiwix-tools_linux-{{ kiwix_arch }}.tar.gz"
|
|
|
|
#kiwix_tar_gz: "kiwix-tools_linux-{{ kiwix_arch }}-3.3.0-1.tar.gz" # Version can be hard-coded if you prefer (as was done til 2022-10-04)
|
2020-02-14 01:31:34 +00:00
|
|
|
|
|
|
|
# kiwix_src_file_i686: "kiwix-linux-i686.tar.bz2"
|
|
|
|
# v0.9 for i686 published May 2014 ("use it to test legacy ZIM content")
|
|
|
|
# v0.10 for i686 published Oct 2016 ("experimental") REPLACED IN EARLY 2018,
|
|
|
|
# thx to @mgautierfr / Matthieu Gautier:
|
|
|
|
# https://github.com/kiwix/kiwix-build/issues/94
|
|
|
|
# https://github.com/kiwix/kiwix-tools/issues/170
|
|
|
|
|
|
|
|
# Used for Kiwix proxy http://box/kiwix/
|
|
|
|
kiwix_url: /kiwix
|
|
|
|
kiwix_url_plus_slash: "{{ kiwix_url }}/" # /kiwix/
|
|
|
|
kiwix_path: "{{ iiab_base }}/kiwix" # /opt/iiab/kiwix
|
|
|
|
|
2020-02-04 15:42:00 +00:00
|
|
|
kiwix_nginx_timeout: 600
|
2020-02-04 16:12:07 +00:00
|
|
|
kiwix_threads: 4
|