2016-03-18 10:10:38 +00:00
|
|
|
---
|
|
|
|
- hosts: localhost
|
|
|
|
vars:
|
2016-05-25 10:47:48 +00:00
|
|
|
bench_repo_path: "/home/{{ ansible_user_id }}/.bench"
|
|
|
|
bench_path: "/home/{{ ansible_user_id }}/frappe-bench"
|
2016-03-18 10:10:38 +00:00
|
|
|
mysql_config_template: "templates/simple_mariadb_config.cnf"
|
|
|
|
mysql_conf_dir: /etc/my.cnf.d/
|
|
|
|
wkhtmltopdf_version: 0.12.2.1
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- name: development tools package
|
|
|
|
yum: name="@Development tools" state=present
|
2016-03-22 07:44:31 +00:00
|
|
|
become: yes
|
|
|
|
become_user: root
|
2016-03-18 10:10:38 +00:00
|
|
|
|
|
|
|
- name: install prequisites
|
|
|
|
yum: pkg={{ item }} state=present
|
|
|
|
with_items:
|
|
|
|
# basic installs
|
|
|
|
- redis
|
|
|
|
|
|
|
|
# for mariadb
|
2016-05-04 07:53:33 +00:00
|
|
|
- mysql-devel
|
|
|
|
- mysql-libs
|
2016-03-18 10:10:38 +00:00
|
|
|
|
|
|
|
# for wkhtmltopdf
|
|
|
|
- libXrender
|
|
|
|
- libXext
|
|
|
|
- xorg-x11-fonts-75dpi
|
|
|
|
- xorg-x11-fonts-Type1
|
|
|
|
|
|
|
|
# for Pillow
|
|
|
|
- libjpeg-devel
|
|
|
|
- zlib-devel
|
|
|
|
- libzip-devel
|
|
|
|
- freetype-devel
|
|
|
|
- lcms2-devel
|
|
|
|
- libwebp-devel
|
|
|
|
- libtiff-devel
|
|
|
|
- tcl-devel
|
|
|
|
- tk-devel
|
|
|
|
become: yes
|
|
|
|
become_user: root
|
|
|
|
|
2016-07-25 06:47:43 +00:00
|
|
|
- name: Add repo nodejs 5
|
|
|
|
yum:
|
|
|
|
name: https://rpm.nodesource.com/pub_5.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm
|
|
|
|
state: present
|
|
|
|
become: yes
|
|
|
|
become_user: root
|
|
|
|
|
|
|
|
- name: Install nodejs v5
|
2016-07-26 07:05:04 +00:00
|
|
|
yum:
|
|
|
|
name: nodejs
|
|
|
|
state: present
|
|
|
|
update_cache: yes
|
2016-07-25 06:47:43 +00:00
|
|
|
become: yes
|
|
|
|
become_user: root
|
|
|
|
|
2016-03-18 10:10:38 +00:00
|
|
|
# install MariaDB
|
|
|
|
- include: includes/mariadb_centos.yml
|
|
|
|
|
|
|
|
# install WKHTMLtoPDF
|
|
|
|
- include: includes/wkhtmltopdf_centos.yml
|
|
|
|
|
|
|
|
# setup MariaDB
|
|
|
|
- include: includes/setup_mariadb.yml
|
|
|
|
|
|
|
|
# setup frappe-bench
|
|
|
|
- include: includes/setup_bench.yml
|
2016-08-01 05:44:01 +00:00
|
|
|
when: not run_travis and without_bench_setup
|
2016-05-23 10:56:13 +00:00
|
|
|
|
|
|
|
# setup development environment
|
|
|
|
- include: includes/setup_dev_env.yml
|
2016-08-01 05:44:01 +00:00
|
|
|
when: not run_travis and not production
|