{{ ansible_managed | comment }} {% for command in nrpe_commands | default([]) %} command[{{ command['name'] }}]={% if 'sudo' in command and command['sudo'] is truthy %}sudo {% endif %}{{ command['line'] }} {% endfor %}