Skip to content
Snippets Groups Projects

package.net.haproxy

Install and configure HAProxy.

Requirements

This role requires the SDM framework.

Role Variables

None.

Dependencies

None.

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: loadbalancers
  tasks:
    - name: install packages required on loadbalancer
      ansible.builtin.import_role:
        name: package.net.haproxy
- name: install service-specific configuration for haproxy
  ansible.builtin.copy:
    src: 50-my-service.cfg
    dest: /etc/haproxy/haproxy.cfg.d/50-my-service.cfg
    owner: root
    group: root
    mode: 0444
- name: configure haproxy
  ansible.builtin.import_tole:
    name: package.net.haproxy
    tasks_from: configure

License

BSD

Author Information

Ansgar Burchardt ansgar.burchardt@tu-dresden.de