Files
ansible-fet/roles/ups/templates/upsscript.j2
2018-03-05 01:57:41 +01:00

17 lines
235 B
Django/Jinja

# {{ ansible_managed }}
# /etc/nut/upssched/upsscript
#! /bin/sh
case $1 in
onbatt)
{% for host in ups_hosts %}
ssh root@{{ host }}
{% endfor %}
;;
lowbatt)
/sbin/upssched fsd;;
*)
echo "wrong Parameter";;
esac