2016-03-15 12:24:17 +05:30
|
|
|
---
|
|
|
|
- hosts: localhost
|
2017-08-28 14:50:50 +05:30
|
|
|
become: yes
|
|
|
|
become_user: root
|
2019-12-04 18:24:56 +05:30
|
|
|
|
2016-03-15 12:24:17 +05:30
|
|
|
vars:
|
2016-05-25 16:17:48 +05:30
|
|
|
bench_repo_path: "/Users/{{ ansible_user_id }}/.bench"
|
|
|
|
bench_path: "/Users/{{ ansible_user_id }}/frappe-bench"
|
2019-12-04 18:24:56 +05:30
|
|
|
|
2016-03-15 12:24:17 +05:30
|
|
|
tasks:
|
2017-08-28 14:50:50 +05:30
|
|
|
- name: install prequisites
|
2019-12-04 18:24:56 +05:30
|
|
|
homebrew:
|
|
|
|
name:
|
|
|
|
- cmake
|
|
|
|
- redis
|
|
|
|
- mariadb
|
|
|
|
- nodejs
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: install wkhtmltopdf
|
|
|
|
homebrew_cask:
|
|
|
|
name:
|
|
|
|
- wkhtmltopdf
|
|
|
|
state: present
|
2016-03-16 15:24:19 +05:30
|
|
|
|
2017-08-28 14:50:50 +05:30
|
|
|
- name: configure mariadb
|
2018-03-03 12:46:05 +05:30
|
|
|
include: roles/mariadb/tasks/main.yml
|
2017-08-28 14:50:50 +05:30
|
|
|
vars:
|
2018-03-03 12:46:05 +05:30
|
|
|
mysql_conf_tpl: roles/mariadb/files/mariadb_config.cnf
|
2016-03-16 15:24:19 +05:30
|
|
|
|
2017-08-28 14:50:50 +05:30
|
|
|
- name: Install MySQLdb in global env
|
|
|
|
pip: name=mysql-python version=1.2.5
|
2016-03-16 15:24:19 +05:30
|
|
|
|
2017-08-28 14:50:50 +05:30
|
|
|
# setup frappe-bench
|
2018-02-05 15:07:14 +05:30
|
|
|
- include: includes/setup_bench.yml
|
2016-03-16 15:24:19 +05:30
|
|
|
|
2017-08-28 14:50:50 +05:30
|
|
|
# setup development environment
|
2018-02-05 15:07:14 +05:30
|
|
|
- include: includes/setup_dev_env.yml
|
2017-08-28 14:50:50 +05:30
|
|
|
when: not production
|
2016-03-16 15:24:19 +05:30
|
|
|
|
2018-02-05 15:07:14 +05:30
|
|
|
...
|