Skip to content

Commit d7f1980

Browse files
authored
Merge pull request #83 from spamik/ansible-3.2.0-fix
Add >=ansible-3.2.0 compatibility
2 parents 773be92 + a24c829 commit d7f1980

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tasks/docker.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
---
2+
- name: HAProxy - create a Docker network
3+
community.docker.docker_network:
4+
name: "{{ haproxy_docker_network_name }}"
5+
state: present
6+
27
- name: HAProxy - run a Docker container
38
community.docker.docker_container:
49
# common settings
@@ -24,7 +29,8 @@
2429
- "{{ inventory_hostname }}"
2530
networks_cli_compatible: true
2631
ports: "{{ haproxy_docker_ports }}"
27-
purge_networks: true
32+
comparisons:
33+
networks: strict
2834
# persistent volumes
2935
volumes: "{{ haproxy_docker_volumes | default([haproxy_config + ':/usr/local/etc/haproxy/haproxy.cfg:ro']) }}"
3036
# runtime settings

0 commit comments

Comments
 (0)