2016-03-16 09:11:55 +00:00
|
|
|
---
|
|
|
|
- hosts: localhost
|
|
|
|
vars:
|
|
|
|
bench_repo_path: "/usr/local/frappe/bench-repo"
|
2016-05-23 10:15:17 +00:00
|
|
|
bench_path: "/home/{{ ansible_user_id }}/frappe/frappe-bench"
|
2016-03-16 09:11:55 +00:00
|
|
|
mysql_config_template: "templates/simple_mariadb_config.cnf"
|
2016-03-17 07:29:44 +00:00
|
|
|
mysql_conf_dir: /etc/mysql/conf.d/
|
2016-03-16 09:54:19 +00:00
|
|
|
wkhtmltopdf_version: 0.12.2.1
|
2016-03-16 09:11:55 +00:00
|
|
|
|
|
|
|
tasks:
|
2016-03-16 09:54:19 +00:00
|
|
|
|
|
|
|
# install pre-requisites
|
|
|
|
- name: install prequisites
|
|
|
|
apt: pkg={{ item }} state=present
|
|
|
|
with_items:
|
2016-03-17 07:29:44 +00:00
|
|
|
# basic installs
|
|
|
|
- build-essential
|
|
|
|
- redis-server
|
2016-03-16 09:54:19 +00:00
|
|
|
- nodejs
|
|
|
|
- npm
|
|
|
|
|
|
|
|
# for mariadb
|
|
|
|
- software-properties-common
|
|
|
|
|
|
|
|
# for wkhtmltopdf
|
|
|
|
- libxrender1
|
|
|
|
- libxext6
|
|
|
|
- xfonts-75dpi
|
|
|
|
- xfonts-base
|
|
|
|
|
|
|
|
# for Pillow
|
|
|
|
- libjpeg8-dev
|
|
|
|
- zlib1g-dev
|
|
|
|
- libfreetype6-dev
|
|
|
|
- liblcms2-dev
|
|
|
|
- libwebp-dev
|
|
|
|
- python-tk
|
|
|
|
|
|
|
|
become: yes
|
|
|
|
become_user: root
|
|
|
|
|
|
|
|
- name: install pillow prerequisites for Ubuntu < 14.04
|
|
|
|
apt: pkg={{ item }} state=present
|
|
|
|
with_items:
|
|
|
|
- libtiff4-dev
|
|
|
|
- tcl8.5-dev
|
|
|
|
- tk8.5-dev
|
2016-05-04 07:53:33 +00:00
|
|
|
when: ansible_distribution_version | version_compare('14.04', 'lt')
|
2016-03-17 07:29:44 +00:00
|
|
|
become: yes
|
|
|
|
become_user: root
|
2016-03-16 09:54:19 +00:00
|
|
|
|
2016-05-04 07:53:33 +00:00
|
|
|
- name: install pillow prerequisites for Ubuntu >= 14.04
|
2016-03-16 09:54:19 +00:00
|
|
|
apt: pkg={{ item }} state=present
|
|
|
|
with_items:
|
|
|
|
- libtiff5-dev
|
|
|
|
- tcl8.6-dev
|
|
|
|
- tk8.6-dev
|
|
|
|
when: ansible_distribution_version >= 14.04
|
2016-03-17 07:29:44 +00:00
|
|
|
become: yes
|
|
|
|
become_user: root
|
2016-03-16 09:54:19 +00:00
|
|
|
|
|
|
|
# install MariaDB
|
|
|
|
- include: includes/mariadb_ubuntu.yml
|
|
|
|
|
|
|
|
# install WKHTMLtoPDF
|
2016-03-17 07:29:44 +00:00
|
|
|
- include: includes/wkhtmltopdf_ubuntu_debian.yml
|
2016-03-16 09:54:19 +00:00
|
|
|
|
2016-03-16 09:11:55 +00:00
|
|
|
# setup MariaDB
|
|
|
|
- include: includes/setup_mariadb.yml
|
2016-03-16 09:54:19 +00:00
|
|
|
|
2016-03-16 09:11:55 +00:00
|
|
|
# setup frappe-bench
|
|
|
|
- include: includes/setup_bench.yml
|