Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

freedomofpress/ansible-role-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-stack

Configurable baseline ansible role for slingin' django code to your server. Many of the other roles on the internetz were attempting to be all encompassing roles where-as I'd like to take advantage of many third-party and internal roles for handling things like postgres, nginx, etc.

This role is not tied to a specific django repo and its designed to be flexible, a lot of the flexibility plays out via ansible variables.

In order to fully take advantage of the role as currently laid out you'll need to use nginx and include snippets/proxy.conf at any point in your configs where you'd normally call the proxy_pass command, example:

location / {
   include snippets/proxy.conf;
}

Requirements

These are the following system requirements:

  • docker

Deployment options

There are two primary otions for deploying your django code-base to the server in question:

  • Utilizing git so that the server will pull the repo's code-base. This requires defining parameters in django_stack_git_repo.
  • rsync a local copy of the code-base up to the server via django_stack_deploy_src.

License

MIT

Author Information

Michael Sheinberg mike@freedom.press

About

Ansible role for django development

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •