ansible/roles/haproxy/handlers/main.yml

23 lines
490 B
YAML
Raw Normal View History

2021-01-09 17:54:42 +00:00
---
- 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"