Ansible role for installing a Django application with a Postgres database and NGINX / uWSGI application server stack.
Only tested on ubuntu and debian for now.
Available variables are listed below, along with default values:
www_domain: "example.com",
dbuser: "example",
dbpassword: "3x4mple",
dbname: "example",
files_dir: "{{ playbook_dir }}/files/",
certificate: "example.com_chain.pem",
key: "example.com.key"
- repleo.nginx - Installs nginx server and configures virtual host for given domainname.
- repleo.postgresql - Installs database server and configures database.
- hosts: servers
roles:
- { role: repleo.django-app,
www_domain: "example.com",
dbuser: "example",
dbpassword: "3x4mple",
dbname: "example",
files_dir: "{{ playbook_dir }}/files/",
certificate: "example.com_chain.pem",
key: "example.com.key"
}
GPL v3 - (c) 2016, Repleo, Amstelveen
Repleo, Amstelveen, Holland -- www.repleo.nl
Jeroen Arnoldus (jeroen@repleo.nl)