https://github.com/wtower/ansible-python-wsgi
Ansible role to install WSGI by compiling with a custom Python version.
https://github.com/wtower/ansible-python-wsgi
ansible-role python-wsgi
Last synced: 10 months ago
JSON representation
Ansible role to install WSGI by compiling with a custom Python version.
- Host: GitHub
- URL: https://github.com/wtower/ansible-python-wsgi
- Owner: Wtower
- License: bsd-3-clause
- Created: 2016-02-11T13:55:51.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-11T14:44:20.000Z (almost 10 years ago)
- Last Synced: 2025-02-02T18:26:18.212Z (12 months ago)
- Topics: ansible-role, python-wsgi
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
python-wsgi
===========
Ansible role to install WSGI by compiling with a custom Python version.
Django case
-----------
In order to deploy a Python 3 Django 1.8+ project to the above setup,
WSGI will not respect the python version specified in virtualenv
unless WSGI is compiled with the same Python version.
Otherwise, looking into the error traceback will reveal that the Python running
will be the default and not 3.4+. It is [possible to provide] to WSGI a different Python executable
only if WSGI is [compiled with the correct Python].
Add the role `python-wsgi` to install WSGI.
Variables
---------
- `wsgi_src`: Directory where to download wsgi, default: `~/mod_wsgi_src`
- `wsgi_ver`: The wsgi version to install, default: 4.4.21
- `python_version`: The python version to install (major.minor), default: 3.5
Useful links
------------
- https://code.google.com/p/modwsgi/wiki/QuickInstallationGuide
- https://www.digitalocean.com/community/tutorials/installing-mod_wsgi-on-ubuntu-12-04
[possible to provide]: http://stackoverflow.com/questions/6450459/mod-wsgi-and-multiple-installations-of-python
[compiled with the correct Python]: https://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIPythonHome
Playbook examples
-----------------
Plain:
---
- hosts: servers
roles:
- python-wsgi
Specify variables:
---
- hosts: servers
gather_facts: no
roles:
- role: python-wsgi
python_version: 3.4