Desktop setup
This commit is contained in:
commit
a7eaa7dbfb
14 changed files with 325 additions and 0 deletions
20
roles/users/tasks/main.yml
Normal file
20
roles/users/tasks/main.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
|
||||
- name: Add user jonathan
|
||||
user:
|
||||
name: jonathan
|
||||
comment: Jonathan Cremin
|
||||
uid: 1000
|
||||
groups: jonathan,adm,cdrom,sudo,dip,plugdev,lpadmin,lxd,sambashare
|
||||
shell: /bin/zsh
|
||||
append: yes
|
||||
become: yes
|
||||
|
||||
- name: Passwordless sudo for jonathan
|
||||
lineinfile:
|
||||
path: /etc/sudoers
|
||||
state: present
|
||||
regexp: '^%sudo'
|
||||
line: '%sudo ALL=(ALL) NOPASSWD: ALL'
|
||||
validate: /usr/sbin/visudo -cf %s
|
||||
become: yes
|
Loading…
Add table
Add a link
Reference in a new issue