---
- name: create user(s)
  action: user name=ansible

- name: setup authorized key(s)
  action: authorized_key user=ansible key='$FILE(roles/common/files/id_rsa.pub)'

- name: create admin group
  action: group name=admin

- name: write the admin sudoers file
  action: template src=templates/sudoers/admin dest=/etc/sudoers.d/admin

- name: write the ansible sudoers file
  action: template src=templates/sudoers/ansible dest=/etc/sudoers.d/ansible


---
- name: create user(s)
  action: user name=ansible

- name: setup authorized key(s)
  action: authorized_key user=ansible key='$FILE(roles/common/files/id_rsa.pub)'

- name: create admin group
  action: group name=admin

- name: write the admin sudoers file
  action: template src=templates/sudoers/admin dest=/etc/sudoers.d/admin owner=root group=root mode=0440

- name: write the ansible sudoers file
  action: template src=templates/sudoers/ansible dest=/etc/sudoers.d/ansible owner=root group=root mode=0440


Extend the case for sudoesw
Extend the case for sudoesw
