GHP publish

This commit is contained in:
ace
2021-01-09 20:54:42 +03:00
commit b4b740a239
173 changed files with 5392 additions and 0 deletions

View File

@ -0,0 +1,22 @@
---
- block:
- name: install haproxy
package:
name: haproxy
state: present
- name: add haproxy config
copy:
content: "{{ haproxy_config }}"
dest: "/etc/haproxy/haproxy.cfg"
notify:
- restart haproxy
when: haproxy_config is defined
- name: start haproxy service
systemd:
name: haproxy
state: started
enabled: yes
daemon_reload: yes