diff --git a/roles/haproxy/tasks/main.yml b/roles/haproxy/tasks/main.yml index 34e5fd0..def0b5f 100644 --- a/roles/haproxy/tasks/main.yml +++ b/roles/haproxy/tasks/main.yml @@ -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