Migrate Ansible setup to use an external role to handle setup of the NGINX, UWSGI and supervisord setup.
Allow for greater reusability of Ansible playbooks.
This commit is contained in:
parent
41a54c74e4
commit
a634aac67f
|
@ -1,10 +1,17 @@
|
|||
---
|
||||
- hosts: all
|
||||
sudo: yes
|
||||
|
||||
roles:
|
||||
- ansible-nginx-uwsgi-supervisor
|
||||
tasks:
|
||||
- include: pre_deployment/base_linux.yaml
|
||||
- include: pre_deployment/python.yaml
|
||||
- include: pre_deployment/mysql_db.yaml
|
||||
- include: pre_deployment/nginx.yaml
|
||||
- include: pre_deployment/supervisor.yaml
|
||||
- include: pre_deployment/web_data_folders.yaml
|
||||
vars:
|
||||
databases:
|
||||
rookeries:
|
||||
username: rookeries
|
||||
password: system_admin
|
||||
- include: pre_deployment/nodejs.yaml
|
||||
|
||||
# TODO Add in globally defined values for webapp and virtualenv folders
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
---
|
||||
- hosts: all
|
||||
sudo: yes
|
||||
tasks:
|
||||
|
||||
- name: install vim
|
||||
apt: pkg=vim state=present
|
||||
|
||||
|
|
|
@ -1,13 +1,4 @@
|
|||
---
|
||||
- hosts: all
|
||||
sudo: yes
|
||||
vars:
|
||||
databases:
|
||||
rookeries:
|
||||
username: rookeries
|
||||
password: system_admin
|
||||
tasks:
|
||||
|
||||
- name: setup MySQL server + Python dependencies
|
||||
apt: pkg={{ item }} state=present
|
||||
with_items:
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
---
|
||||
- hosts: all
|
||||
sudo: yes
|
||||
tasks:
|
||||
|
||||
- name: install nodejs + npm dependencies
|
||||
apt: pkg={{ item }} state=present
|
||||
with_items:
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
- src: git+https://bitbucket.org/dorianpula/ansible-nginx-uwsgi-supervisor
|
Loading…
Reference in New Issue