Adding backup flag for config files

This commit is contained in:
Tyler Hale 2024-07-25 17:58:25 -06:00
parent 635628222f
commit c7b4e85d96
Signed by: Tyler
GPG key ID: C7CC4B910D88EF96

View file

@ -102,6 +102,7 @@
src: "{{ item }}"
dest: /etc/haproxy/maps
mode: 0644
backup: true
with_fileglob:
- "maps/*"
notify: reload haproxy
@ -124,6 +125,7 @@
dest: /etc/haproxy/haproxy.cfg
mode: 0644
validate: haproxy -f %s -c -q
backup: true
notify: reload haproxy
- name: Ensure HAProxy is started and enabled on boot.