{% for username, settings in nut_users.items() %} [{{ username }}] {% if settings.password|d(none) is not none %} password = {{ settings.password | decrypt }} {% endif %} {% for action in settings.actions|d([]) %} actions = {{ action }} {% endfor %} {% for instcmds in settings.instcmds|d([]) %} instcmds = {{ instcmds }} {% endfor %} {% if settings.upsmon|d(none) is not none %} upsmon {{ settings.upsmon }} {% endif %} {% if not loop.last %} {% endif %} {% endfor %}