40 lines
983 B
YAML
40 lines
983 B
YAML
- include_role:
|
|
name: per_user
|
|
|
|
- name: Create directories
|
|
file:
|
|
name: "{{ account_homedir.stdout }}/{{ item }}"
|
|
state: directory
|
|
mode: 0700
|
|
owner: "{{ account_name.stdout }}"
|
|
group: "{{ group_name.stdout }}"
|
|
loop:
|
|
- ".config/kanshi"
|
|
|
|
- name: Copy files
|
|
copy:
|
|
src: "files/{{ item.src }}"
|
|
dest: "{{ account_homedir.stdout }}/{{ item.dest }}"
|
|
mode: 0600
|
|
owner: "{{ account_name.stdout }}"
|
|
group: "{{ group_name.stdout }}"
|
|
loop:
|
|
- src: config_kanshi
|
|
dest: .config/kanshi/config
|
|
|
|
- name: Configure sway_config_files
|
|
copy:
|
|
src: "files/sway_config_files/{{ item }}.conf"
|
|
dest: "{{ account_homedir.stdout }}/.config/sway/config.d/{{ item }}.conf"
|
|
mode: 0600
|
|
owner: "{{ account_name.stdout }}"
|
|
group: "{{ group_name.stdout }}"
|
|
loop:
|
|
- exec_kanshi
|
|
|
|
- import_tasks: tasks/peruser_freebsd.yaml
|
|
when: 'os_flavor == "freebsd"'
|
|
|
|
- import_tasks: tasks/peruser_linux.yaml
|
|
when: 'os_flavor == "linux"'
|