1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00
iiab/roles/debian_schooltool/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

51 lines
1.4 KiB
YAML

- name: get the required build packages
package: name={{ item }}
state=present
with_items:
- build-essential
- gettext
- python-dev
- libicu-dev
- libxslt1-dev
- libfreetype6-dev
- libjpeg-dev
- enscript
- python-virtualenv
- ttf-liberation
- redis-server
- libjpeg-dev
- xvfb
when: debian_schooltool_install and is_debuntu
tags:
- download
- name: Create the font directory
file: path=/usr/share/fonts/truetype/ttf-ubuntu
state=directory
- name: get the ttf-ubuntu-font-family
get_url: url={{ iiab_download_url }}/ubuntu-font-family-0.83.zip
dest={{ downloads_dir }}
tags: download2
- name: expand the ttf fonts to the right place
unarchive: src={{ downloads_dir }}/ubuntu-font-family-0.83.zip
dest=/usr/share/fonts/truetype/ttf-ubuntu/
- name: get the schooltool source
get_url: url={{ iiab_download_url }}/{{ schooltool_src }}
dest={{ downloads_dir }}
tags: download2
- name: expand source to dest
unarchive: src={{ downloads_dir }}/{{ schooltool_src }}
dest={{ iiab_base }}
- name: create a link for schooltool
file: src={{ iiab_base }}/{{ schooltool_version }}
dest={{ iiab_base }}/schooltool
state=link
- name: build the schooltool from source
shell: command='$( cd {{ iiab_base }}/schooltool; /usr/bin/make ) '