From: Harry Huang Date: Tue, 20 Nov 2018 07:10:18 +0000 (+0800) Subject: Fix keepalive restart issue X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F37%2F65237%2F1;p=compass4nfv.git Fix keepalive restart issue JIRA: COMPASS-621 Change-Id: I4a2e529e71f47ac4097ffda754dcaa50e3c618f8 Signed-off-by: Harry Huang --- diff --git a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml index 6f43e7fd..ab2714a9 100755 --- a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml +++ b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml @@ -428,3 +428,9 @@ when: - checkresult.rc == 0 - offline_deployment is defined and offline_deployment == "Disable" + +- 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"'