2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-23 04:29:02 +00:00

[fix] install supervisor via role

This commit is contained in:
Saurabh 2017-10-10 12:48:39 +05:30
parent e821ba5e3b
commit 0233a4170e
4 changed files with 14 additions and 2 deletions

View File

@ -34,6 +34,10 @@ def install_nodejs():
def install_psutil():
run_playbook('prerequisites/install_roles.yml', extra_vars=extra_vars, tag='psutil')
@click.command('supervisor')
def install_supervisor():
run_playbook('prerequisites/install_roles.yml', extra_vars=extra_vars, tag='supervisor')
@click.command('nginx')
def install_nginx():
run_playbook('prerequisites/install_roles.yml', extra_vars=extra_vars, tag='nginx')
@ -47,5 +51,6 @@ install.add_command(install_maridb)
install.add_command(install_wkhtmltopdf)
install.add_command(install_nodejs)
install.add_command(install_psutil)
install.add_command(install_supervisor)
install.add_command(install_nginx)
install.add_command(install_failtoban)

View File

@ -33,7 +33,6 @@
- redis
- screen
- sudo
- supervisor
- tcl-devel
- tk-devel
- vim
@ -72,7 +71,6 @@
- python-tk
- redis-server
- screen
- supervisor
- vim
- xfonts-75dpi
- xfonts-base

View File

@ -19,6 +19,7 @@
- { role: wkhtmltopdf, tags: "wkhtmltopdf" }
- { role: nodejs, tags: "nodejs" }
- { role: psutil, tags: "psutil" }
- { role: supervisor, tags: "supervisor", when: production }
- { role: nginx, tags: "nginx", when: production }
- { role: fail2ban, tags: "fail2ban" , when: production }
tasks:

View File

@ -0,0 +1,8 @@
---
- name: Install supervisor on centos
yum: name=supervisor state=present
when: ansible_os_family == 'RedHat'
- name: Install supervisor on debian
apt: pkg=supervisor state=present force=yes
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'