aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/haproxy/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/haproxy/tasks')
-rw-r--r--ansible/roles/haproxy/tasks/config.yml12
1 files changed, 8 insertions, 4 deletions
diff --git a/ansible/roles/haproxy/tasks/config.yml b/ansible/roles/haproxy/tasks/config.yml
index 9df07fd1e..2a9941ccc 100644
--- a/ansible/roles/haproxy/tasks/config.yml
+++ b/ansible/roles/haproxy/tasks/config.yml
@@ -22,10 +22,14 @@
- name: Copying over haproxy.cfg
template:
- src: "haproxy.cfg.j2"
- dest: "{{ node_config_directory }}/haproxy/haproxy.cfg"
+ src: "{{ item }}.cfg.j2"
+ dest: "{{ node_config_directory }}/{{ item }}/{{ item }}.cfg"
+ with_items:
+ - "haproxy"
- name: Copying over keepalived.conf
template:
- src: "keepalived.conf.j2"
- dest: "{{ node_config_directory }}/keepalived/keepalived.conf"
+ src: "{{ item }}.conf.j2"
+ dest: "{{ node_config_directory }}/{{ item }}/{{ item }}.conf"
+ with_items:
+ - "keepalived"