mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
[fix] install supervisor via role
This commit is contained in:
parent
e821ba5e3b
commit
0233a4170e
@ -34,6 +34,10 @@ def install_nodejs():
|
|||||||
def install_psutil():
|
def install_psutil():
|
||||||
run_playbook('prerequisites/install_roles.yml', extra_vars=extra_vars, tag='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')
|
@click.command('nginx')
|
||||||
def install_nginx():
|
def install_nginx():
|
||||||
run_playbook('prerequisites/install_roles.yml', extra_vars=extra_vars, tag='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_wkhtmltopdf)
|
||||||
install.add_command(install_nodejs)
|
install.add_command(install_nodejs)
|
||||||
install.add_command(install_psutil)
|
install.add_command(install_psutil)
|
||||||
|
install.add_command(install_supervisor)
|
||||||
install.add_command(install_nginx)
|
install.add_command(install_nginx)
|
||||||
install.add_command(install_failtoban)
|
install.add_command(install_failtoban)
|
@ -33,7 +33,6 @@
|
|||||||
- redis
|
- redis
|
||||||
- screen
|
- screen
|
||||||
- sudo
|
- sudo
|
||||||
- supervisor
|
|
||||||
- tcl-devel
|
- tcl-devel
|
||||||
- tk-devel
|
- tk-devel
|
||||||
- vim
|
- vim
|
||||||
@ -72,7 +71,6 @@
|
|||||||
- python-tk
|
- python-tk
|
||||||
- redis-server
|
- redis-server
|
||||||
- screen
|
- screen
|
||||||
- supervisor
|
|
||||||
- vim
|
- vim
|
||||||
- xfonts-75dpi
|
- xfonts-75dpi
|
||||||
- xfonts-base
|
- xfonts-base
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
- { role: wkhtmltopdf, tags: "wkhtmltopdf" }
|
- { role: wkhtmltopdf, tags: "wkhtmltopdf" }
|
||||||
- { role: nodejs, tags: "nodejs" }
|
- { role: nodejs, tags: "nodejs" }
|
||||||
- { role: psutil, tags: "psutil" }
|
- { role: psutil, tags: "psutil" }
|
||||||
|
- { role: supervisor, tags: "supervisor", when: production }
|
||||||
- { role: nginx, tags: "nginx", when: production }
|
- { role: nginx, tags: "nginx", when: production }
|
||||||
- { role: fail2ban, tags: "fail2ban" , when: production }
|
- { role: fail2ban, tags: "fail2ban" , when: production }
|
||||||
tasks:
|
tasks:
|
||||||
|
8
playbooks/prerequisites/roles/supervisor/tasks/main.yml
Normal file
8
playbooks/prerequisites/roles/supervisor/tasks/main.yml
Normal 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'
|
Loading…
Reference in New Issue
Block a user