diff options
| -rw-r--r-- | ansible/roles/haproxy/tasks/config.yml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ansible/roles/haproxy/tasks/config.yml b/ansible/roles/haproxy/tasks/config.yml index 50d324671..1ec4245d3 100644 --- a/ansible/roles/haproxy/tasks/config.yml +++ b/ansible/roles/haproxy/tasks/config.yml @@ -25,10 +25,12 @@ - name: Copying over haproxy.cfg template: - src: "{{ item }}.cfg.j2" - dest: "{{ node_config_directory }}/{{ item }}/{{ item }}.cfg" - with_items: - - "haproxy" + src: "{{ item }}" + dest: "{{ node_config_directory }}/haproxy/haproxy.cfg" + with_first_found: + - "{{ node_custom_config }}/haproxy/{{ inventory_hostname }}/haproxy.cfg" + - "{{ node_custom_config }}/haproxy/haproxy.cfg" + - "haproxy.cfg.j2" - name: Copying over keepalived.conf template: |
