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

13 lines
494 B
YAML
Raw Normal View History

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
when: docker_swarm_manager_main_node
tags: [ 'haproxy', 'docker_haproxy', 'docker_swarm', 'docker', 'haproxy_conf' ]