danie1cohen.django

Django

A reusable role for deploying Django applications.

Requirements

This role is designed to run on Ubuntu Trusty systems.

Role Variables

You need to set a few basic variables:

  • For the virtual environment:

    • project: yourproject
  • Django repository:

By default, the apps are listed in django_default_apps. You only need to add any apps that are unique to your project:

  • django_installed_apps:
    • yourapp

Other important settings:

  • django_secret_key: !super@random#key$woo!
  • django_debug: yes
  • django_allowed_hosts: []

To add more settings, use the django_addl_settings variable. This variable allows you to write Python, so when adding string values, make sure to include quotes when converting from YAML to Python:

  • django_addl_settings:
    • FOO: "'?????'"
    • BAR: "'PROFIT!!!!!!'"

Dependencies

  • danie1cohen.virtualen3

Example Playbook

- hosts: servers
  roles:
     - danie1cohen.django

License

BSD License

Author Information

Dan Cohen

Informazioni sul progetto

An ansible role for managing django app deployments

Installa
ansible-galaxy install danie1cohen.django
Licenza
Unknown
Download
79
Proprietario