aboutsummaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/users.yml
blob: 8171bd6c9ee662de9c5208020d94d3dda211346a (plain)
1
2
3
4
5
6
---
- name: Create main user account
  user: name={{ main_user_name }} state=present shell={{ main_user_shell }} groups=sudo

- name: Give main user account sudo power
  template: src=roles/common/templates/sudoers.j2 dest=/etc/sudoers.d/sudoers owner=root group=root mode=0440 validate='visudo -cf %s'