2019-05-25 16:50:09 +01:00
|
|
|
- name: Make me
|
|
|
|
user:
|
2018-09-17 17:22:15 +01:00
|
|
|
name: "{{ user }}"
|
|
|
|
home: "{{ home }}"
|
2018-09-09 09:22:11 +01:00
|
|
|
comment: Jake Howard
|
2020-03-30 19:36:05 +01:00
|
|
|
shell: /usr/bin/zsh
|
2018-09-09 09:22:11 +01:00
|
|
|
system: true
|
|
|
|
groups:
|
2020-04-04 21:23:42 +01:00
|
|
|
- audio
|
|
|
|
- games
|
2018-09-09 09:22:11 +01:00
|
|
|
- input
|
2020-04-04 21:23:42 +01:00
|
|
|
- lp
|
|
|
|
- power
|
|
|
|
- scanner
|
|
|
|
- storage
|
|
|
|
- tty
|
2018-09-09 09:22:11 +01:00
|
|
|
- users
|
2020-04-04 21:23:42 +01:00
|
|
|
- uucp
|
2018-09-09 09:22:11 +01:00
|
|
|
- video
|
|
|
|
- wheel
|
2019-05-27 22:10:51 +01:00
|
|
|
|
|
|
|
- name: Give user sudo access
|
|
|
|
lineinfile:
|
2023-07-29 11:34:45 +01:00
|
|
|
path: /etc/sudoers.d/00_jake
|
2019-05-27 22:10:51 +01:00
|
|
|
line: "{{ user }} ALL=(ALL) ALL"
|
2023-07-29 11:34:45 +01:00
|
|
|
create: true
|
|
|
|
validate: visudo -cf %s
|
|
|
|
mode: 0640
|
2023-07-31 14:25:31 +01:00
|
|
|
|
|
|
|
- name: Install xprofile
|
|
|
|
template:
|
|
|
|
src: ./files/xprofile.sh
|
|
|
|
dest: "{{ home }}/.xprofile"
|
|
|
|
mode: 0644
|
|
|
|
owner: "{{ user }}"
|
|
|
|
group: "{{ user }}"
|