machine_setup/ansible/roles/alacritty/tasks/peruser.yaml

30 lines
706 B
YAML
Raw Normal View History

2022-10-17 19:29:31 +00:00
- 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/alacritty"
- 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:
2023-12-28 17:50:05 +00:00
- src: alacritty.toml
dest: .config/alacritty/alacritty.toml
2022-10-17 19:29:31 +00:00
- import_tasks: tasks/peruser_freebsd.yaml
when: 'os_flavor == "freebsd"'
- import_tasks: tasks/peruser_linux.yaml
when: 'os_flavor == "linux"'