Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

An extremely barebones example of deploying nginx, supervisor, gunicorn, and Django with Ansible.

Notifications You must be signed in to change notification settings

mobolic/django-ansible-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Ansible Playbook for a Django Project

As you might expect, this is an simple example Ansible playbook for Django development.

Because this is an example, it does not currently include dynamically determining cloud-based inventories or provisioning production servers.

Requirements

  • Virtualbox
  • Vagrant
  • virtualenv and virtualenvwrapper

Quickstart

  • Clone this repository to your development machine.

    git clone ...

  • Activate a new virtualenv and install the required development Python packages:

    mkvirtualenv example
    pip install -r requirements/development.txt
    
  • Provision the vagrant box / virtual machine:

    vagrant up --provision`.
    

Important Notes

Note that all of the variables in ansible/secret_vars should be changed. All of the files in that directory should be converted to Ansible Vault files.

If no Ansible Vault files have been created, entering anything at the Vault password prompt will work.

About

An extremely barebones example of deploying nginx, supervisor, gunicorn, and Django with Ansible.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages