# YPCrumble/ansible-django-stack

Ansible Playbook for setting up a Django app with Nginx, Gunicorn, PostgreSQL, Celery, RabbitMQ, Supervisor, Virtualenv, and Memcached. A Vagrantfile for provisioning a VirtualBox virtual machine is included as well.

Repository: https://github.com/YPCrumble/ansible-django-stack
Canonical: https://ross.abutalabs.com/products/ansible-django-stack
Language: Jinja
License: MIT
License Family: permissive
Last push: 2026-03-10T18:19:20+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 71, release rhythm 8, longevity 100
- inputs: {"age_days": 4541, "days_push": 176, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1383, forks 382 (observed 2026-08-28T04:04:34.682889+00:00)

## What it is
An Ansible playbook that provisions a complete production stack for Django applications, including Nginx, Gunicorn, PostgreSQL, Celery, RabbitMQ, Supervisor, Virtualenv, and Memcached. It also includes a Vagrantfile for local VirtualBox provisioning and a certbot role for automatic Let's Encrypt SSL certificates.

## Use cases
- deploy a django app to a server with ansible
- set up nginx gunicorn postgres for django
- provision a django production server with celery and rabbitmq
- automate ssl certificates with lets encrypt for django
- spin up a local django dev vm with vagrant
- configure memcached and supervisor for a django deployment

## When to choose
- you deploy Django apps to Ubuntu servers and want a battle-tested, repeatable Ansible setup
- you want the common Django production components (Nginx, Gunicorn, PostgreSQL, Celery, Memcached) wired together out of the box
- you need automatic Let's Encrypt certificate provisioning and renewal
- you want a Vagrant/VirtualBox environment to test the deployment locally

## When to avoid
- your app is not Django or not Python-based
- you deploy to containers/Kubernetes rather than traditional VMs
- you need non-Ubuntu target operating systems
- you prefer a PaaS or managed platform over self-managed servers

## Facets
- artifact type: infra-config
- maturity: active
- function: infrastructure-as-code, deployment, configuration-management, http-server, database, caching, message-queue, security
- domain: web-development, backend, self-hosted
- platform: cli, self-hosted
- tags: ansible, django, nginx, gunicorn, postgresql, celery, rabbitmq, memcached, supervisor, vagrant, lets-encrypt, certbot, playbook, devops, automation, linux, ubuntu, docker

## Member repositories
- YPCrumble/ansible-django-stack (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:34.682889+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:40:01.744223+00:00, confidence not recorded.
  - readme: https://github.com/YPCrumble/ansible-django-stack (fetched 2026-08-28T04:04:34.682889+00:00, sha a1dc80b45ac9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
