2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-14 09:14:04 +00:00
bench/playbooks/develop/centos.yml

66 lines
1.3 KiB
YAML
Raw Normal View History

2016-03-18 10:10:38 +00:00
---
- hosts: localhost
vars:
bench_repo_path: "/usr/local/frappe/bench-repo"
bench_path: "/home/{{ ansible_user_id }}/frappe/frappe-bench"
mysql_config_template: "templates/simple_mariadb_config.cnf"
mysql_conf_dir: /etc/my.cnf.d/
wkhtmltopdf_version: 0.12.2.1
vars_prompt:
- name: mysql_root_password
prompt: "MySQL Root Password"
tasks:
# install pre-requisites
- name: development tools package
yum: name="@Development tools" state=present
- name: install prequisites
yum: pkg={{ item }} state=present
with_items:
# basic installs
- python-setuptools
- python-devel
- python-pip
- redis
- nodejs
- npm
# for mariadb
- software-properties-common
# 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
# 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