2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-23 12:39:01 +00:00
bench/playbooks/develop/install.yml

45 lines
1.1 KiB
YAML

---
- hosts: localhost
- include: setup_essentials.yml
- include: ../prerequisites/install_prerequisites.yml
- include: macosx.yml
when: ansible_distribution == 'MacOSX'
- 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
# setup development environment
- include: includes/setup_dev_env.yml
when: not run_travis and not production
# - include: ubuntu.yml
# when: ansible_distribution == 'Ubuntu'
#
# - include: centos.yml
# when: ansible_distribution == 'CentOS'
#
# - include: debian.yml
# when: ansible_distribution == 'Debian'