Ansible role to setup haproxy.
Family | Distribution | Version | Test Status |
---|---|---|---|
Debian | Ubuntu | Xenial | |
Debian | Ubuntu | Trusty | |
Debian | Ubuntu | Precise |
- ansible >= 2.0.0
Unless stated otherwise a default value is provided for
each of the variables mentioned above in the defaults
directory.
None.
- hosts: servers
roles:
- { role: username.rolename, x: 42 }
- 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