2022-11-26 23:41:41 +00:00
|
|
|
- include_role:
|
|
|
|
name: per_user
|
|
|
|
|
|
|
|
- name: Create directories
|
2022-12-03 03:13:32 +00:00
|
|
|
when: install_graphics
|
2022-11-26 23:41:41 +00:00
|
|
|
file:
|
|
|
|
name: "{{ account_homedir.stdout }}/{{ item }}"
|
|
|
|
state: directory
|
|
|
|
mode: 0700
|
|
|
|
owner: "{{ account_name.stdout }}"
|
|
|
|
group: "{{ group_name.stdout }}"
|
|
|
|
loop:
|
|
|
|
- ".config/mpv"
|
|
|
|
|
|
|
|
- name: Copy files
|
2022-12-03 03:13:32 +00:00
|
|
|
when: install_graphics
|
2022-11-26 23:41:41 +00:00
|
|
|
copy:
|
|
|
|
src: "files/{{ item.src }}"
|
|
|
|
dest: "{{ account_homedir.stdout }}/{{ item.dest }}"
|
|
|
|
mode: 0600
|
|
|
|
owner: "{{ account_name.stdout }}"
|
|
|
|
group: "{{ group_name.stdout }}"
|
|
|
|
loop:
|
|
|
|
- src: mpv.conf
|
|
|
|
dest: .config/mpv/mpv.conf
|
|
|
|
|
|
|
|
- import_tasks: tasks/peruser_freebsd.yaml
|
|
|
|
when: 'os_flavor == "freebsd"'
|
|
|
|
|
|
|
|
- import_tasks: tasks/peruser_linux.yaml
|
|
|
|
when: 'os_flavor == "linux"'
|