ntd / ansible-role-nut

Ansible role to install and configure Nework UPS tools on Debian
MIT License
11 stars 18 forks source link

Error when nut_upsmon_notifycmd is not defined #3

Closed PeterWagenaarNW closed 4 years ago

PeterWagenaarNW commented 4 years ago

The code suggests nut_upsmon_notifycmd can be left out, but when ran without this command, the task crashes:

failed: [<host>] (item=upsmon.conf) => {"ansible_loop_var": "item", "changed": false, "item": "upsmon.conf", "msg": "AnsibleUndefinedVariable: 'nut_upsmon_notifycmd' is undefined"}