calvinbui.ansible_haproxy_docker
Ansible HAProxy
HAProxy in Docker
Requirements
N/A
Role Variables
haproxy_name: Name of container
haproxy_image: Docker image to use
haproxy_ports: List of ports to expose
haproxy_config_directory: Directory to HAProxy config
haproxy_config_template: Config template to use. Can be replaced with one in your playbook. The template packaged with this role is meant to be very generic and serve a variety of use cases. However, many people would like to have a much more customized version, and so you can override this role's default template with your own, adding any additional customizations you need. To do this:
- Create a templates directory at the same level as your playbook.
- Create a
templates\myhaproxy.cfg.j2file (just choose a different name from the default template). - Set the variable like:
haproxy_config_template: myhaproxy.cfg.j2(with the name of your custom template).
haproxy_docker_additional_options: Additional parameters to add to docker container
Dependencies
N/A
Example Playbook
- hosts: servers
become: true
roles:
- role: calvinbui.ansible_haproxy_docker
License
GPLv3
Author Information
Install
ansible-galaxy install calvinbui.ansible_haproxy_dockerLicense
Unknown
Downloads
337
Owner
Soft tabs > spaces > tabs. I'm not a developer.
