Ansible role to install a Django project.
The django project itself must already contain a manage.py file and a requirements/{{ environment }}.txt file.
django_git_repo
: The git repository containing the Django application to install.
django_base_dir
: The directory which should contain the project. Default: /srvdjango_subdirectory
: A path from the root of the repository to the folder containing the django application. Default: "" -- If assigned a value, the value should have a trailing slash.django_user_name
: The user account to own the files. Default: djangodjango_group_name
: The group account to own the files. Default: djangodjango_project_name
: The name of the project folder. Default: applicationdjango_virtualenv_path
: The location to install a virtualenv. Default: /srv/venvdjango_environment
: The environment we're installing. Default: development
- The ScorpionResponse.pip role will be used to install pip.
Example usage:
- hosts: all
vars:
- django_git_repo: "https://github.com/myacct/repo.git"
roles:
- { role: ScorpionResponse.django }
BSD