dotfiles/tasks/user.yml
Jake Howard 1f1da2d77d
Some checks failed
/ lint (push) Failing after 1m36s
Better manage user sudo
2023-07-29 11:34:45 +01:00

28 lines
489 B
YAML

- name: Make me
user:
name: "{{ user }}"
home: "{{ home }}"
comment: Jake Howard
shell: /usr/bin/zsh
system: true
groups:
- audio
- games
- input
- lp
- power
- scanner
- storage
- tty
- users
- uucp
- video
- wheel
- name: Give user sudo access
lineinfile:
path: /etc/sudoers.d/00_jake
line: "{{ user }} ALL=(ALL) ALL"
create: true
validate: visudo -cf %s
mode: 0640