We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 773be92 + a24c829 commit d7f1980Copy full SHA for d7f1980
tasks/docker.yml
@@ -1,4 +1,9 @@
1
---
2
+- name: HAProxy - create a Docker network
3
+ community.docker.docker_network:
4
+ name: "{{ haproxy_docker_network_name }}"
5
+ state: present
6
+
7
- name: HAProxy - run a Docker container
8
community.docker.docker_container:
9
# common settings
@@ -24,7 +29,8 @@
24
29
- "{{ inventory_hostname }}"
25
30
networks_cli_compatible: true
26
31
ports: "{{ haproxy_docker_ports }}"
27
- purge_networks: true
32
+ comparisons:
33
+ networks: strict
28
34
# persistent volumes
35
volumes: "{{ haproxy_docker_volumes | default([haproxy_config + ':/usr/local/etc/haproxy/haproxy.cfg:ro']) }}"
36
# runtime settings
0 commit comments