Actually version the ingress haproxy config
This commit is contained in:
20
ansible/roles/ingress/tasks/haproxy.yml
Normal file
20
ansible/roles/ingress/tasks/haproxy.yml
Normal 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
|
@ -1,2 +1,5 @@
|
||||
- name: Configure wireguard
|
||||
include: wireguard.yml
|
||||
|
||||
- name: Configure haproxy
|
||||
include: haproxy.yml
|
||||
|
Reference in New Issue
Block a user