diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2018-12-04 09:58:35 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2018-12-04 09:59:03 +0800 |
commit | f5c7021fe96c39bfed4f948a01c966604641dc00 (patch) | |
tree | c86f306ae4361b401f1e5bc2ed9d249ab1229750 /deploy/adapters/ansible/roles/config-osa | |
parent | bb7fc0344ed6e15f03a35c822478a898ccb95947 (diff) |
Fix keepalive restart issue
Change-Id: I4d690b82d2c8c75e2896a7f3575fe3591f719b44
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/config-osa')
-rwxr-xr-x | deploy/adapters/ansible/roles/config-osa/tasks/main.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml index 05034001..e6794926 100755 --- a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml +++ b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml @@ -434,3 +434,9 @@ dest: /etc/ansible/roles/os_nova/templates/nova.conf.j2 regexp: '^vif_plugging_timeout' line: 'vif_plugging_timeout = 30' + +- name: fix keepalived + lineinfile: + dest: /opt/openstack-ansible/inventory/group_vars/haproxy/keepalived.yml + regexp: 'check_script: "/bin/kill -0 `cat /var/run/haproxy.pid`"' + line: ' check_script: "/bin/kill -0 `cat /var/run/haproxy.pid` || true"' |