13 lines
484 B
YAML
13 lines
484 B
YAML
---
|
|
- 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
|
|
|
|
when: docker_swarm_manager
|
|
tags: [ 'haproxy', 'docker_haproxy', 'docker_swarm', 'docker', 'haproxy_conf' ]
|