ansible-role-docker-swarm/tasks/haproxy_conf.yml

13 lines
501 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_main_node | bool
tags: [ 'haproxy', 'docker_haproxy', 'docker_swarm', 'docker', 'haproxy_conf' ]