---
  - name: Copy my public SSH key for root user
    authorized_key: user=root key="{{ lookup('file', './files/authorized_keys') }}"

  - name: Add group 'dylan'
    group: name=dylan state=present

  - name: Add non-root user 'dylan'
    user: name=dylan comment="Dylan Taylor" uid=1000 group=dylan

  - name: Copy my public SSH key for non-root user 'dylan'
    authorized_key: user=dylan key="{{ lookup('file', './files/authorized_keys') }}"

---
  - name: Copy my public SSH key for root user
    authorized_key: user=root key="{{ lookup('file', './files/authorized_keys') }}"

  - name: Add group 'dylan'
    group: name=dylan state=present

  - name: Add non-root user 'dylan'
    user: name=dylan comment="Dylan Taylor" uid=1000 group=dylan

  - name: Copy my public SSH key for non-root user 'dylan'
    authorized_key: user=dylan key="{{ lookup('file', './files/authorized_keys') }}"

  - name: Configure sudoers
    template: src=./files/sudoers dest=/etc/sudoers

Write sudoers file as part of user creation
Write sudoers file as part of user creation
