Skip to content

Ansible role to install mod_wsgi and setup the application WSGI script.

License

Notifications You must be signed in to change notification settings

ansiblebit/mod_wsgi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

14e3491 · Oct 5, 2016
Oct 4, 2016
Oct 4, 2016
Oct 4, 2016
Oct 5, 2016
Oct 5, 2016
Jun 16, 2016
Oct 5, 2016
Oct 4, 2016
Oct 4, 2016
Oct 4, 2016
Oct 5, 2016

Repository files navigation

mod_wsgi

License Build Status

Platform Platform

Project Stats

Ansible role to install and setup mod_wsgi.

Tests

Family Distribution Version Test Status
Debian Debian Wheezy x86 x86_64
Debian Debian Jessie x86 x86_64
Debian Ubuntu Yakkety x86 x86_64
Debian Ubuntu Xenial x86 x86_64
Debian Ubuntu Trusty x86 x86_64
Debian Ubuntu Vivid x86 x86_64
Debian Ubuntu Precise x86 x86_64

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: build or package.

  • 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

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

About

Ansible role to install mod_wsgi and setup the application WSGI script.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published