Adding steps for handling map files

This commit is contained in:
Tyler Hale 2022-08-25 16:19:52 -06:00
parent 53f6eb07e9
commit 288a8c59ef
Signed by: Tyler
GPG key ID: C7CC4B910D88EF96

View file

@ -78,6 +78,20 @@
state: yes
persistent: yes
- name: Ensure maps directory exists
file:
path: "/etc/haproxy/maps"
state: directory
- name: Deploy map files
copy:
src: "{{ item }}"
dest: /etc/haproxy/maps
mode: 0644
with_fileglob:
- "maps/*"
notify: reload haproxy
- name: Update HAProxy configuration
template:
src: haproxy.cfg.j2