Initialize the server and create a Django Project.
Additionally installs uwsgi and supervisord for process management.
Python2, virtualenv
vassals_dir: /etc/uwsgi/vassals
supervisor_conf_dir: /etc/supervisor/conf.d
project_name: {{project_name}}
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: django-servers
remote_user: root
roles:
- { role: django_project, project_name: 'your_project_name' }
MIT