initial commit
This commit is contained in:
25
tasks/configure-user.yaml
Normal file
25
tasks/configure-user.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
- name: User Configuration - Add sudoers entry for "{{ username }}"
|
||||
lineinfile:
|
||||
path: "/etc/sudoers.d/{{ username }}"
|
||||
line: "{{ username }} ALL=(ALL) NOPASSWD: ALL"
|
||||
create: yes
|
||||
mode: "0640"
|
||||
|
||||
- name: User Configuration - Copy tmux configuration
|
||||
copy:
|
||||
src: "files/configs/tmux.conf"
|
||||
dest: "{{ userhome }}/.tmux.conf"
|
||||
owner: "{{ username }}"
|
||||
group: "{{ username }}"
|
||||
|
||||
- name: User Configuration - Copy pictures
|
||||
become_user: "{{ username }}"
|
||||
copy:
|
||||
src: files/pictures/
|
||||
dest: "{{ userhome }}/Pictures/"
|
||||
|
||||
- name: User Configuration - Create opt/scripts directory
|
||||
become_user: "{{ username }}"
|
||||
file:
|
||||
path: "{{ userhome }}/opt/scripts"
|
||||
state: directory
|
||||
Reference in New Issue
Block a user