This repository has been archived on 2020-07-02. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-haproxy/tasks/main.yml

22 lines
502 B
YAML

- name: Copy HAProxy files
loop:
- { src: 'haproxy.conf.j2', dest: '{{ haproxy.config }}' }
template:
follow: yes
src: "{{ item.src }}"
dest: "{{ item.dest }}"
notify: Run service actions
tags:
- haproxy
- config
- name: Copy error page overrides
copy:
src: '{{ role_path }}/errpage/'
dest: '/etc/haproxy/errors/'
follow: yes
notify: Run service actions
tags:
- haproxy
- config
- errorpages