Adding steps for handling map files
This commit is contained in:
parent
53f6eb07e9
commit
288a8c59ef
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue