forked from ISTI-ansible-roles/ansible-roles
Merge branch 'master' of adellam/ansible-roles into master
This commit is contained in:
commit
53fabc0de0
|
@ -6,6 +6,7 @@ export PATH="/sbin:/usr/sbin:/bin:/usr/bin:$PATH"
|
||||||
TYPE=$1
|
TYPE=$1
|
||||||
NAME=$2
|
NAME=$2
|
||||||
STATE=$3
|
STATE=$3
|
||||||
|
RETVAL=0
|
||||||
|
|
||||||
{% if keepalived_notify_extra_params is defined %}
|
{% if keepalived_notify_extra_params is defined %}
|
||||||
{{ keepalived_notify_extra_params }}
|
{{ keepalived_notify_extra_params }}
|
||||||
|
@ -13,8 +14,8 @@ STATE=$3
|
||||||
|
|
||||||
|
|
||||||
{% if keepalived_nagios_check %}
|
{% if keepalived_nagios_check %}
|
||||||
echo $TYPE $NAME is in $STATE state > /var/run/keepalive.state
|
echo "$TYPE $NAME is in $STATE state" > /var/run/keepalive.state
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
exit 0
|
exit $RETVAL
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue