--- - name: Add the special group "sudonopsswd" to the system, then to the sudoers file hosts: all gather_facts: true become: True tasks: - name: "Add group w/ GID 1999" group: name: sudonopsswd state: present gid: 1999 - name: "Add sudonopsswd line to sudoers file" sudoers: name: "sudonopsswd-group" group: sudonopsswd state: present commands: ALL nopassword: true validation: detect