ansible/roles/octoprint/tasks/proxy.yml
2020-06-08 19:01:19 +02:00

20 lines
364 B
YAML

---
- become: yes
block:
- name: install needed tools
apt:
update_cache: yes
pkg:
- haproxy
- name: copy ha config
copy:
src: etc/haproxy/haproxy.cfg
dest: /etc/haproxy/haproxy.cfg
- name: restart haproxy
systemd:
state: restarted
daemon_reload: yes
name: haproxy