GHP publish
This commit is contained in:
22
roles/haproxy/handlers/main.yml
Normal file
22
roles/haproxy/handlers/main.yml
Normal file
@ -0,0 +1,22 @@
|
||||
---
|
||||
- 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"
|
||||
|
Reference in New Issue
Block a user