ansible/roles/octoprint/tasks/proxy.yml

20 lines
364 B
YAML
Raw Normal View History

2020-06-08 17:01:19 +00:00
---
- 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