From 49f334284b2b61f748c32eb434ddbb48bc9d6e59 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Tue, 10 Dec 2019 15:31:45 +0100 Subject: [PATCH] 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 --- ansible/roles/haproxy/tasks/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/haproxy/tasks/config.yml b/ansible/roles/haproxy/tasks/config.yml index 10bdb77cdf..53b0f1e516 100644 --- a/ansible/roles/haproxy/tasks/config.yml +++ b/ansible/roles/haproxy/tasks/config.yml @@ -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"