2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-13 16:56:33 +00:00
bench/playbooks/develop/centos.yml

106 lines
2.4 KiB
YAML
Raw Normal View History

2016-03-18 10:10:38 +00:00
---
2017-08-28 09:20:50 +00:00
- include: setup_essentials.yml
2016-03-18 10:10:38 +00:00
- hosts: localhost
2017-08-28 09:20:50 +00:00
become: yes
become_user: root
2016-03-18 10:10:38 +00:00
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"
2017-08-28 09:20:50 +00:00
mysql_conf_tpl: ../files/mariadb_config.cnf
mysql_secure_installation: True
roles:
- prerequisites
- mariadb
- wkhtmltopdf
- nodejs
- psutils
2016-03-18 10:10:38 +00:00
tasks:
2017-08-28 09:20:50 +00:00
# setup frappe-bench
- include: includes/setup_bench.yml
when: not run_travis and not without_bench_setup
2016-03-18 10:10:38 +00:00
2017-08-28 09:20:50 +00:00
<<<<<<< 7a7c61105c87ac4cccea9c39c23691b0a61f9836
2016-03-18 10:10:38 +00:00
- name: development tools package
yum: name="@Development tools" state=present
become: yes
become_user: root
2016-03-18 10:10:38 +00:00
- name: install prerequisites
2016-03-18 10:10:38 +00:00
yum: pkg={{ item }} state=present
with_items:
# basic installs
- redis
# for mariadb
- libselinux-python
- 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
# Python LDAP
- openldap-devel
2016-03-18 10:10:38 +00:00
become: yes
become_user: root
- name: Import Node source RPM key
rpm_key:
key: https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL
state: present
2016-08-03 07:22:08 +00:00
become: yes
become_user: root
- name: Add Node Repo
yum:
name: 'https://rpm.nodesource.com/pub_6.x/el/{{ ansible_distribution_major_version }}/{{ ansible_architecture }}/nodesource-release-el{{ ansible_distribution_major_version }}-1.noarch.rpm'
state: present
become: yes
become_user: root
2016-08-03 07:22:08 +00:00
- name: Install nodejs
yum:
name: nodejs
state: present
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.yml
2016-03-18 10:10:38 +00:00
# setup MariaDB
- include: includes/setup_mariadb.yml
# setup frappe-bench
- include: includes/setup_bench.yml
2016-08-02 06:28:28 +00:00
when: not run_travis and not without_bench_setup
# setup development environment
- include: includes/setup_dev_env.yml
2016-08-01 05:44:01 +00:00
when: not run_travis and not production
2017-08-28 09:20:50 +00:00
=======
# setup development environment
- include: includes/setup_dev_env.yml
when: not run_travis and not production
>>>>>>> create roles to install pre-requisites