17 lines
456 B
YAML
17 lines
456 B
YAML
---
|
|
- name: Generate haproxy config
|
|
template:
|
|
src: templates/haproxy.cfg.j2
|
|
dest: "{{ target_path }}/haproxy.cfg"
|
|
|
|
- name: Generate haproxy-docker-swarm
|
|
template:
|
|
src: templates/haproxy-docker-swarm.yaml.j2
|
|
dest: "{{ target_path }}/haproxy-swarm.yaml"
|
|
|
|
- name: Create the overlay network that will be joined by the proxied services
|
|
docker_network:
|
|
name: '{{ haproxy_docker_overlay_network }}'
|
|
driver: overlay
|
|
scope: swarm
|