--- - name: install package: name: "{{ sudo_package_name }}" state: "{{ sudo_package_state }}" - name: configure template: src: "sudoers.j2" dest: /etc/sudoers owner: root group: root mode: 0440 validate: visudo -cf %s