1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/kiwix/tasks/main.yml

30 lines
915 B
YAML
Raw Normal View History

#- 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
- name: Set kiwix source file name x86_64
set_fact:
2017-10-25 16:36:32 +00:00
kiwix_src_file: "kiwix-tools_linux64_2017-10-25.tar.gz"
kiwix_src_bin_only: True
2017-05-27 18:09:50 +00:00
when: ansible_machine == "x86_64"
- name: Set kiwix source file name armv7l
set_fact:
2017-10-25 16:36:32 +00:00
kiwix_src_file: "kiwix-tools_armhf_2017-10-25.tar.gz"
2017-05-27 18:09:50 +00:00
kiwix_src_bin_only: True
when: ansible_machine == "armv7l" or ansible_machine == "armv6l"
2017-05-27 18:09:50 +00:00
2017-10-27 14:09:30 +00:00
- name: Get the Kiwix software
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
- include: kiwix_install.yml
when: kiwix_src_file is defined
tags:
- kiwix
- debug: msg="WARNING kiwix source is not defined for your platform"
when: not kiwix_src_file