ansiblebit.mod_wsgi
mod_wsgi
Ansible role to install and setup mod_wsgi.
Tests
| Family | Distribution | Version | Test Status |
|---|---|---|---|
| Debian | Debian | Wheezy | |
| Debian | Debian | Jessie | |
| Debian | Ubuntu | Yakkety | |
| Debian | Ubuntu | Xenial | |
| Debian | Ubuntu | Trusty | |
| Debian | Ubuntu | Vivid | |
| Debian | Ubuntu | Precise |
Requirements
- ansible >= 2.0
Role Variables
debug: flag to run debug tasks.
mod_wsgi_scripts: list of WSGI scripts to be setup.
mod_wsgi_dir_scripts: directory where WSGI applications will reside.
mod_wsgi_installation: the installation method:
buildorpackage.mod_wsgi_use_httpd: flag to indicate if ansiblebit.httpd dependency is enabled.
package
Variables specific to the package installation process.
- mod_wsgi_version: (optional) the mod_wsgi debian package version to be installed.
build
Variables specific to the build installation process.
- mod_wsgi_version: the mod_wsgi version to be installed.
Dependencies
- ansiblebit.httpd (optional)
Playbooks
- hosts: servers
roles:
- role: ansiblebit.mod_wsgi
Tags
- configuration: configuration tasks.
- debug: task to debug role variables.
- installation: installation tasks.
- validation: task to validate role variables.
Test
To run the tests you will need to install:
To run all tests against all pre-defined OS/distributions * ansible versions:
$ tox
To run tests for trusty64:
$ cd tests
$ bash test_idempotence.sh --box trusty64.vagrant.dev
# log file will be stores under tests/log
To perform debugging on a specific environment:
$ cd tests
$ vagrant up trusty64.vagrant.dev
# to provision using the test.yml playbook (as many time as you need)
$ vagrant provision trusty64.vagrant.dev
# to access the Vagrant box
$ vagrant ssh trusty64.vagrant.dev
Links
Install
ansible-galaxy install ansiblebit.mod_wsgiLicense
bsd-3-clause
Downloads
84
Owner

