mirror of
https://github.com/frappe/bench.git
synced 2024-11-14 09:14:04 +00:00
1262f25704
- in travis tests added check for the node_modules folder not found, since it was moved to frappe from v11 onwards - added --without-erpnext flag to install only frappe - identified but not yet fixed localctl failure on scaleway cloud (instant fix: apt install keyboard-configuration kbd console-data) - fixed owner and permissions for bench.log in logs - fixed mariadb set root password issue - added libselinux-python to centos for localctl issues
49 lines
2.1 KiB
YAML
49 lines
2.1 KiB
YAML
---
|
|
# This is the master playbook that deploys the whole Frappe and ERPNext stack
|
|
|
|
- hosts: localhost
|
|
become: yes
|
|
become_user: root
|
|
roles:
|
|
- { role: common, tags: common }
|
|
- { role: locale, tags: locale }
|
|
- { role: mariadb, tags: mariadb }
|
|
- { role: nodejs, tags: nodejs }
|
|
- { role: swap, tags: swap, when: production }
|
|
- { role: logwatch, tags: logwatch, when: production }
|
|
- { role: bash_screen_wall, tags: bash_screen_wall, when: production }
|
|
- { role: frappe_selinux, tags: frappe_selinux, when: production }
|
|
- { role: dns_caching, tags: dns_caching, when: production }
|
|
- { role: ntpd, tags: ntpd, when: production }
|
|
- { role: wkhtmltopdf, tags: wkhtmltopdf }
|
|
- { role: psutil, tags: psutil }
|
|
- { role: redis, tags: redis }
|
|
- { role: supervisor, tags: supervisor, when: production }
|
|
- { role: nginx, tags: nginx, when: production }
|
|
- { role: fail2ban, tags: fail2ban, when: production }
|
|
tasks:
|
|
- name: Set hostname
|
|
hostname: name='{{ hostname }}'
|
|
when: hostname is defined and production
|
|
|
|
- name: Start NTPD
|
|
service: name=ntpd state=started
|
|
when: ansible_distribution == 'CentOS' and production
|
|
|
|
- name: Start NTPD
|
|
service: name=ntp state=started
|
|
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' and production
|
|
|
|
- include_tasks: macosx.yml
|
|
when: ansible_distribution == 'MacOSX'
|
|
|
|
- name: setup bench and dev environment
|
|
hosts: localhost
|
|
vars:
|
|
bench_repo_path: "/home/{{ frappe_user }}/.bench"
|
|
bench_path: "/home/{{ frappe_user }}/{{ bench_name }}"
|
|
roles:
|
|
# setup frappe-bench
|
|
- { role: bench, tags: "bench", when: not run_travis and not without_bench_setup }
|
|
...
|