--- - name: Add user jonathan user: name: jonathan comment: Jonathan Cremin uid: 1000 groups: jonathan,wheel shell: /bin/zsh append: yes become: yes - name: Passwordless sudo for jonathan lineinfile: path: /etc/sudoers state: present regexp: '^%wheel' line: '%wheel ALL=(ALL) NOPASSWD: ALL' validate: /usr/sbin/visudo -cf %s become: yes