{"id":24941382,"url":"https://github.com/wtower/ansible-django-prepare","last_synced_at":"2026-05-08T15:17:23.619Z","repository":{"id":68184792,"uuid":"51519579","full_name":"Wtower/ansible-django-prepare","owner":"Wtower","description":"Ansible role to prepare the launch of a Django app on a Plesk managed Ubuntu server.","archived":false,"fork":false,"pushed_at":"2016-02-12T12:14:50.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T17:48:47.547Z","etag":null,"topics":["ansible-role","devops","django","libapache2-mod-wsgi","python"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Wtower.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-11T14:22:50.000Z","updated_at":"2017-03-23T08:18:32.000Z","dependencies_parsed_at":"2023-04-19T11:52:31.956Z","dependency_job_id":null,"html_url":"https://github.com/Wtower/ansible-django-prepare","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Wtower/ansible-django-prepare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wtower%2Fansible-django-prepare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wtower%2Fansible-django-prepare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wtower%2Fansible-django-prepare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wtower%2Fansible-django-prepare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wtower","download_url":"https://codeload.github.com/Wtower/ansible-django-prepare/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wtower%2Fansible-django-prepare/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268017357,"owners_count":24181669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible-role","devops","django","libapache2-mod-wsgi","python"],"created_at":"2025-02-02T18:22:32.423Z","updated_at":"2026-05-08T15:17:18.590Z","avatar_url":"https://github.com/Wtower.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"django-prepare\n==============\n\nAnsible role to prepare the launch of a Django app on a Plesk managed Ubuntu server:\n\n- installs important packages\n- imports timezone data to MySQL (optional)\n- setup virtualenv (optional)\n\nPackages\n--------\n\n- python-pip\n- python-dev\n- build-essential\n- python-django (for django-admin bash autocomplete register only)\n- python-mysqldb (for MySQL only)\n- [libmysqlclient-dev] (or get error [mysql_config not found])\n- [libapache2-mod-wsgi]\n- virtualenvwrapper\n- [libjpeg-dev] (for Pillow, or get error decoder JPEG not available)\n- python3-dev (for Python 3)\n- upgrade pip\n\n[libmysqlclient-dev]: http://stackoverflow.com/questions/5178292/pip-install-mysql-python-fails-with-environmenterror-mysql-config-not-found\n[mysql_config not found]: http://stackoverflow.com/questions/7475223/mysql-config-not-found-when-installing-mysqldb-python-interface\n[libapache2-mod-wsgi]: https://www.digitalocean.com/community/tutorials/installing-mod_wsgi-on-ubuntu-12-04\n[libjpeg-dev]: http://stackoverflow.com/questions/8915296/python-image-library-fails-with-message-decoder-jpeg-not-available-pil\n\nTimezone data (optional)\n------------------------\n\nIf the tzinfo data is missing from mysql, a `ValueError` occurs\n(see [official mysql docs], [relevant tzinfo blog], [how to check tzinfo], [how to set tzinfo]).\n\n[official mysql docs]: https://dev.mysql.com/doc/refman/5.5/en/time-zone-support.html\n[relevant tzinfo blog]: http://www.pending.io/django-mysql-time-zones-and-how-to-fix-it/\n[how to check tzinfo]: http://stackoverflow.com/questions/2934258/how-do-i-get-the-current-time-zone-of-mysql\n[how to set tzinfo]: http://stackoverflow.com/questions/930900/how-to-set-time-zone-of-mysql\n\nSetup virtualenv (optional)\n---------------------------\n\nCreate a directory to keep all virtualenvs and prepare bash profile for the user.\n\nHow to use\n----------\n\nTo use, add the role `django-prepare`.\n\nVariables\n---------\n\n- `ansible_user_id`: The user id with access to mysql and mysql database.\n- `mysql_pass`: MySQL password (better obtain from vault or prompt in playbook). Omit to skip mysql import of data.\n- `virtualenv_dir`: Virtualenvs home directory. Set to `false` to disable virtualenv. Default: `/var/virtualenvs`.\n- `plesk_server_group`: Plesk server group, default: `psaserv`.\n\nPlaybook examples\n-----------------\n\nPlain:\n\n    ---\n    - hosts: servers\n      roles:\n        - django-prepare\n\nSpecify variables:\n\n    ---\n    - hosts: servers\n      gather_facts: no\n      roles:\n        - role: django-prepare\n          virtualenv_dir: ~/.virtualenvs\n\nGalaxy\n------\n\nSee more roles regarding Django on https://galaxy.ansible.com/Wtower/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtower%2Fansible-django-prepare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwtower%2Fansible-django-prepare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtower%2Fansible-django-prepare/lists"}