2016-03-15 06:54:17 +00:00
|
|
|
---
|
|
|
|
- hosts: localhost
|
|
|
|
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 07:00:55 +00:00
|
|
|
mysql_config_template: "templates/simple_mariadb_config.cnf"
|
2016-03-15 06:54:17 +00:00
|
|
|
mysql_conf_dir: /usr/local/etc/my.cnf.d
|
|
|
|
|
|
|
|
tasks:
|
2016-03-16 09:54:19 +00:00
|
|
|
|
2016-03-15 06:54:17 +00:00
|
|
|
# install pre-requisites
|
|
|
|
- name: install prequisites
|
|
|
|
homebrew: name={{ item }} state=present
|
|
|
|
with_items:
|
|
|
|
- cmake
|
|
|
|
- redis
|
|
|
|
- mariadb
|
|
|
|
- nodejs
|
2016-03-16 09:54:19 +00:00
|
|
|
|
2016-03-15 06:54:17 +00:00
|
|
|
# install wkhtmltopdf
|
|
|
|
- name: cask installs
|
|
|
|
homebrew_cask: name={{ item }} state=present
|
|
|
|
with_items:
|
|
|
|
- wkhtmltopdf
|
2016-03-16 09:54:19 +00:00
|
|
|
|
2016-03-15 06:54:17 +00:00
|
|
|
# setup MariaDB
|
2016-03-16 09:11:55 +00:00
|
|
|
- include: includes/setup_mariadb.yml
|
2016-03-16 09:54:19 +00:00
|
|
|
|
2016-03-15 06:54:17 +00:00
|
|
|
# setup frappe-bench
|
2016-03-16 09:11:55 +00:00
|
|
|
- include: includes/setup_bench.yml
|
2016-03-16 09:54:19 +00:00
|
|
|
|
2016-05-23 10:56:13 +00:00
|
|
|
# setup development environment
|
|
|
|
- include: includes/setup_dev_env.yml
|
2016-05-25 10:47:48 +00:00
|
|
|
when: not production
|