Template custom HAProxy service configuration

Change Id84e3b6e62e544582d6917047534e846e026798d added support for
custom HAProxy service config using a plain copy of files in services.d.

Use a template action instead of a copy so that we can use variables and
iterate over group of hosts.

Change-Id: I1f07785932de4e4540422bd18af95241f05a67bf
This commit is contained in:
Pierre Riteau 2019-12-10 15:31:45 +01:00
parent 516cb3d95d
commit 49f334284b

View File

@ -70,7 +70,7 @@
- name: Copying over custom haproxy services configuration
vars:
service: "{{ haproxy_services['haproxy'] }}"
copy:
template:
src: "{{ item }}"
dest: "{{ node_config_directory }}/haproxy/services.d/"
mode: "0660"