2020-09-30 17:14:29 +02:00
|
|
|
---
|
|
|
|
- name: Manage the haproxy configuration
|
|
|
|
block:
|
|
|
|
- name: Create the haproxy configuration directory
|
|
|
|
file: dest=/etc/haproxy state=directory owner=root group=root mode='0755'
|
|
|
|
|
|
|
|
- name: Install the haproxy configuration
|
|
|
|
template: src=haproxy.cfg.j2 dest=/etc/haproxy/haproxy.cfg owner=root group=root mode='0444'
|
|
|
|
notify: Reload the HAPROXY configuration
|
|
|
|
|
2020-10-01 19:31:33 +02:00
|
|
|
when: docker_swarm_manager
|
2020-09-30 17:14:29 +02:00
|
|
|
tags: [ 'haproxy', 'docker_haproxy', 'docker_swarm', 'docker', 'haproxy_conf' ]
|