Skip to content

Ansible role for installing Django APP with Postgres on NGINX

License

Notifications You must be signed in to change notification settings

repleo/ansible-role-django-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: git server via https by nginx

Build Status Ansible Galaxy

Ansible role for installing a Django application with a Postgres database and NGINX / uWSGI application server stack.

Requirements

Only tested on ubuntu and debian for now.

Role Variables

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"

Dependencies

  • repleo.nginx - Installs nginx server and configures virtual host for given domainname.
  • repleo.postgresql - Installs database server and configures database.

Example Playbook

- 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"
    }

License

GPL v3 - (c) 2016, Repleo, Amstelveen

Author Information

Repleo, Amstelveen, Holland -- www.repleo.nl
Jeroen Arnoldus (jeroen@repleo.nl)

About

Ansible role for installing Django APP with Postgres on NGINX

Resources

License

Stars

Watchers

Forks

Packages

No packages published