Ansible role to install and setup mod_wsgi.
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 |
- ansible >= 2.0
-
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:
build
orpackage
. -
mod_wsgi_use_httpd: flag to indicate if ansiblebit.httpd dependency is enabled.
Variables specific to the package
installation process.
- mod_wsgi_version: (optional) the mod_wsgi debian package version to be installed.
Variables specific to the build
installation process.
- mod_wsgi_version: the mod_wsgi version to be installed.
- ansiblebit.httpd (optional)
- hosts: servers
roles:
- role: ansiblebit.mod_wsgi
- configuration: configuration tasks.
- debug: task to debug role variables.
- installation: installation tasks.
- validation: task to validate role variables.
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