1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00
iiab/roles/kiwix/tasks/main.yml
georgejhunt f319afa432 Test (#20)
* change apache_data to apache_user in all

* no libapach2 in centos. just php. no php-magick in centos

* remove redundant vars entries

* do not create apache user

* missed one pound sign

* soft code all references to apache_user

* centos requires older setuptools

* revert ansible_lsb.id in xsce.yml

* try getting recent pip

* move pip download to 2prep so that kalite success is not dependent on iiab coming first

* still need to replace setuptools in kalite

* add curl -- needed in debian

* massivly substitue iiab for xsce, and rename files

* completed runansible

* centos fixes,install  pip

* appliance means no iptables rules

* change to earlier version of setuptools for centos

* delete file duplicate, hopefully unnecessary. generate the offline docs

* wiki docs errors

* create the admin group -- deleted earlier

* use the --yes option with pip uninstall

* base of repo moved from schoolserver to iiab, unleashkids.org->iiab.io

* network detection broken due to tupo
2017-06-09 16:25:56 -07:00

33 lines
936 B
YAML

#- 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-tools_linux64_2017-06-02.tar.gz"
kiwix_src_bin_only: True
when: ansible_machine == "x86_64"
- name: Set kiwix source file name armv7l
set_fact:
kiwix_src_file: "kiwix-tools_armhf_2017-06-02.tar.gz"
kiwix_src_bin_only: True
when: ansible_machine == "armv7l"
- name: Get the kiwix software
get_url: url="{{ iiab_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