2016-03-15 06:54:17 +00:00
|
|
|
---
|
|
|
|
- hosts: localhost
|
|
|
|
vars:
|
|
|
|
bench_repo_path: "/usr/local/frappe/bench-repo"
|
|
|
|
bench_path: "/Users/{{ ansible_user_id }}/frappe/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:
|
|
|
|
|
|
|
|
# install pre-requisites
|
|
|
|
- name: install prequisites
|
|
|
|
homebrew: name={{ item }} state=present
|
|
|
|
with_items:
|
|
|
|
- cmake
|
|
|
|
- redis
|
|
|
|
- mariadb
|
|
|
|
- nodejs
|
|
|
|
- npm
|
|
|
|
when: ansible_os_family == 'Darwin'
|
|
|
|
|
|
|
|
# install wkhtmltopdf
|
|
|
|
- name: cask installs
|
|
|
|
homebrew_cask: name={{ item }} state=present
|
|
|
|
with_items:
|
|
|
|
- wkhtmltopdf
|
|
|
|
when: ansible_os_family == 'Darwin'
|
|
|
|
|
|
|
|
# setup MariaDB
|
2016-03-15 07:00:55 +00:00
|
|
|
- include: setup_mariadb.yml
|
2016-03-15 06:54:17 +00:00
|
|
|
|
|
|
|
# setup frappe-bench
|
2016-03-15 07:00:55 +00:00
|
|
|
- include: setup_bench.yml
|
2016-03-15 06:54:17 +00:00
|
|
|
|
|
|
|
|