--- - name: Install sudo apt: name: sudo - name: Configure sudoers template: src: "{{ item }}.j2" dest: "/etc/{{ item }}" mode: 0440 loop: - sudoers.d/custom_passprompt - sudoers.d/group_privilege - sudoers