Ansible: add a new user as sudoers

 

- name: configure sudoers
  lineinfile: dest=/etc/sudoers backup=yes state=present regexp='^%UBUNTU' insertafter="^# %wheel" line='%UBUNTU ALL=(ALL) ALL'
  tags: config-sudoers

3 thoughts on “Ansible: add a new user as sudoers

Leave a Reply

Your email address will not be published. Required fields are marked *