dotfiles/tasks/user.yml

36 lines
652 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
- name: Install xprofile
template:
src: ./files/xprofile.sh
dest: "{{ home }}/.xprofile"
mode: 0644
owner: "{{ user }}"
group: "{{ user }}"