2016-03-15 06:54:17 +00:00
|
|
|
---
|
|
|
|
- hosts: localhost
|
2016-03-22 07:44:31 +00:00
|
|
|
|
2017-08-29 13:21:47 +00:00
|
|
|
- include: setup_essentials.yml
|
|
|
|
|
|
|
|
- include: ../prerequisites/install_prerequisites.yml
|
|
|
|
|
2016-03-15 07:00:55 +00:00
|
|
|
- include: macosx.yml
|
2016-03-16 09:11:55 +00:00
|
|
|
when: ansible_distribution == 'MacOSX'
|
2016-05-25 10:47:48 +00:00
|
|
|
|
2017-08-29 13:21:47 +00:00
|
|
|
- name: "Setup mariadb, wkhtmltopdf, nodejs and psutil"
|
|
|
|
hosts: localhost
|
|
|
|
become: yes
|
|
|
|
become_user: root
|
|
|
|
vars:
|
|
|
|
mysql_conf_tpl: ../files/mariadb_config.cnf
|
|
|
|
mysql_secure_installation: True
|
|
|
|
roles:
|
|
|
|
- mariadb
|
|
|
|
- wkhtmltopdf
|
|
|
|
- nodejs
|
|
|
|
- psutil
|
|
|
|
|
|
|
|
- name: setup bench and dev environment
|
|
|
|
hosts: localhost
|
|
|
|
vars:
|
|
|
|
bench_repo_path: "/home/{{ ansible_user_id }}/.bench"
|
|
|
|
bench_path: "/home/{{ ansible_user_id }}/{{ bench_name }}"
|
|
|
|
tasks:
|
|
|
|
# setup frappe-bench
|
|
|
|
- include: includes/setup_bench.yml
|
|
|
|
when: not run_travis and not without_bench_setup
|
2016-05-25 10:47:48 +00:00
|
|
|
|
2017-08-29 13:21:47 +00:00
|
|
|
# setup development environment
|
|
|
|
- include: includes/setup_dev_env.yml
|
|
|
|
when: not run_travis and not production
|