Actually version the ingress haproxy config

This commit is contained in:
Jake Howard
2021-06-12 17:04:21 +01:00
parent 33fcf1a9e5
commit 3485f8e1f0
5 changed files with 72 additions and 1 deletions

View File

@ -0,0 +1,20 @@
- name: Install Haproxy
package:
name: haproxy
become: true
- name: Haproxy config
template:
src: files/haproxy.cfg
dest: /etc/haproxy/haproxy.cfg
validate: /usr/sbin/haproxy -c -- %s
mode: "0644"
backup: yes
become: true
notify: restart haproxy
- name: Enable Haproxy
service:
name: haproxy
enabled: true
become: true

View File

@ -1,2 +1,5 @@
- name: Configure wireguard
include: wireguard.yml
- name: Configure haproxy
include: haproxy.yml