2016-03-15 06:54:17 +00:00
|
|
|
---
|
|
|
|
- hosts: localhost
|
2017-08-28 09:20:50 +00:00
|
|
|
become: yes
|
|
|
|
become_user: root
|
2016-03-15 06:54:17 +00:00
|
|
|
vars:
|
2016-05-25 10:47:48 +00:00
|
|
|
bench_repo_path: "/Users/{{ ansible_user_id }}/.bench"
|
|
|
|
bench_path: "/Users/{{ ansible_user_id }}/frappe-bench"
|
2016-03-15 06:54:17 +00:00
|
|
|
tasks:
|
2017-08-28 09:20:50 +00:00
|
|
|
# install pre-requisites
|
|
|
|
- name: install prequisites
|
|
|
|
homebrew: name={{ item }} state=present
|
|
|
|
with_items:
|
|
|
|
- cmake
|
|
|
|
- redis
|
|
|
|
- mariadb
|
|
|
|
- nodejs
|
|
|
|
|
|
|
|
# install wkhtmltopdf
|
|
|
|
- name: cask installs
|
|
|
|
homebrew_cask: name={{ item }} state=present
|
|
|
|
with_items:
|
|
|
|
- wkhtmltopdf
|
2016-03-16 09:54:19 +00:00
|
|
|
|
2017-08-28 09:20:50 +00:00
|
|
|
- name: configure mariadb
|
2018-03-03 07:16:05 +00:00
|
|
|
include: roles/mariadb/tasks/main.yml
|
2017-08-28 09:20:50 +00:00
|
|
|
vars:
|
2018-03-03 07:16:05 +00:00
|
|
|
mysql_conf_tpl: roles/mariadb/files/mariadb_config.cnf
|
2016-03-16 09:54:19 +00:00
|
|
|
|
2017-08-28 09:20:50 +00:00
|
|
|
- name: Install MySQLdb in global env
|
|
|
|
pip: name=mysql-python version=1.2.5
|
2016-03-16 09:54:19 +00:00
|
|
|
|
2017-08-28 09:20:50 +00:00
|
|
|
# setup frappe-bench
|
2018-02-05 09:37:14 +00:00
|
|
|
- include: includes/setup_bench.yml
|
2016-03-16 09:54:19 +00:00
|
|
|
|
2017-08-28 09:20:50 +00:00
|
|
|
# setup development environment
|
2018-02-05 09:37:14 +00:00
|
|
|
- include: includes/setup_dev_env.yml
|
2017-08-28 09:20:50 +00:00
|
|
|
when: not production
|
2016-03-16 09:54:19 +00:00
|
|
|
|
2018-02-05 09:37:14 +00:00
|
|
|
...
|