ansible/roles/haproxy/handlers/main.yml
2021-01-09 20:54:42 +03:00

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"