kolla-ansible/ansible/roles/haproxy/tasks/config.yml
Sam Yaple ab9f652113 Add keepalived to ansible
Adds the needed ansible bits to support keepalived

Closes-Bug: #1479934
Change-Id: Iace29b23a0e923b1f5dc9a4f5bc0f88afce3ae62
Partially-Implements: blueprint ansible-service
2015-07-30 19:08:22 +00:00

26 lines
664 B
YAML
Executable File

---
- name: Ensuring config directory exists
file:
path: "{{ node_config_directory }}/haproxy/"
state: "directory"
recurse: "yes"
- name: Copying over config(s)
template:
src: "haproxy.cfg.j2"
dest: "{{ node_config_directory }}/haproxy/haproxy.cfg"
- name: Allowing non-local IP binding
sysctl: name="net.ipv4.ip_nonlocal_bind" value=1 sysctl_set=yes
- name: Ensuring config directory exists
file:
path: "{{ node_config_directory }}/keepalived/"
state: "directory"
recurse: "yes"
- name: Copying over config(s)
template:
src: "keepalived.conf.j2"
dest: "{{ node_config_directory }}/keepalived/keepalived.conf"