23 lines
490 B
YAML
23 lines
490 B
YAML
|
---
|
||
|
- name: restart haproxy
|
||
|
become: true
|
||
|
systemd:
|
||
|
name: haproxy
|
||
|
state: restarted
|
||
|
daemon_reload: yes
|
||
|
|
||
|
- name: restart docker haproxy
|
||
|
docker_container:
|
||
|
name: "haproxy"
|
||
|
image: "{{ docker_registry }}/haproxy:{{ haproxy_image_tag }}"
|
||
|
state: started
|
||
|
restart: yes
|
||
|
ports:
|
||
|
- "443:443"
|
||
|
container_default_behavior: no_defaults
|
||
|
detach: true
|
||
|
restart_policy: unless-stopped
|
||
|
volumes:
|
||
|
- "/opt/haproxy/conf.d:/usr/local/etc/haproxy/conf.d"
|
||
|
|