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

34 lines
930 B
YAML
Raw Normal View History

2017-05-27 18:09:50 +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"
- name: Set kiwix source file name x86_64
set_fact:
kiwix_src_file: "kiwix-0.9-linux-x86_64.tar.bz2"
kiwix_src_bin_only: False
when: ansible_machine == "x86_64"
- name: Set kiwix source file name armv7l
set_fact:
kiwix_src_file: "kiwix-server-0.9-linux-armv5tejl.tar.bz2"
kiwix_src_bin_only: True
when: ansible_machine == "armv7l"
- name: Get the kiwix software
get_url: url="{{ xsce_download_url }}/{{ kiwix_src_file }}" dest="{{ downloads_dir }}/{{ kiwix_src_file }}"
when: not {{ use_cache }} and not {{ no_network }}
tags:
- download2
- 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