# {{ ansible_managed }} {% for user in groot %} Defaults:{{ user }} !requiretty {% for command in item.value -%} {{ user }} ALL=(ALL:ALL) NOPASSWD: {{ command }} {% endfor -%} {% endfor %}