2022-10-17 18:40:22 +00:00
|
|
|
- include_role:
|
|
|
|
name: per_user
|
|
|
|
|
2022-10-17 22:47:21 +00:00
|
|
|
- name: Create directories
|
|
|
|
file:
|
|
|
|
name: "{{ account_homedir.stdout }}/{{ item }}"
|
|
|
|
state: directory
|
|
|
|
mode: 0700
|
|
|
|
owner: "{{ account_name.stdout }}"
|
|
|
|
group: "{{ group_name.stdout }}"
|
|
|
|
loop:
|
|
|
|
- ".config/sway"
|
|
|
|
- ".config/sway/config.d"
|
|
|
|
- ".config/waybar"
|
|
|
|
- ".config/xdg-desktop-portal-wlr"
|
|
|
|
- ".config/mako"
|
2022-10-17 18:40:22 +00:00
|
|
|
|
2022-10-17 22:47:21 +00:00
|
|
|
- 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
|
|
|
|
dest: .config/sway/config
|
|
|
|
- src: bliss.jpg
|
|
|
|
dest: .config/sway/bliss.jpg
|
|
|
|
- src: spaceglenda300.jpg
|
|
|
|
dest: .config/sway/spaceglenda300.jpg
|
|
|
|
- src: waybar_config.json
|
|
|
|
dest: .config/waybar/config
|
|
|
|
- src: style.css
|
|
|
|
dest: .config/waybar/style.css
|
|
|
|
- src: xdg-desktop-portal-wlr-config
|
|
|
|
dest: .config/xdg-desktop-portal-wlr/config
|
|
|
|
- src: electron-flags.conf
|
|
|
|
dest: .config/electron-flags.conf
|
|
|
|
- src: mako_config
|
|
|
|
dest: .config/mako/config
|
|
|
|
|
|
|
|
- name: Configure dotfiles (conf directory)
|
|
|
|
copy:
|
2022-10-18 02:17:26 +00:00
|
|
|
src: "files/sway_config_files/{{ item }}.conf"
|
2022-10-17 22:47:21 +00:00
|
|
|
dest: "{{ account_homedir.stdout }}/.config/sway/config.d/{{ item }}.conf"
|
|
|
|
mode: 0600
|
|
|
|
owner: "{{ account_name.stdout }}"
|
|
|
|
group: "{{ group_name.stdout }}"
|
|
|
|
loop: "{{ sway_conf_files }}"
|
2022-10-17 18:40:22 +00:00
|
|
|
|
|
|
|
- import_tasks: tasks/peruser_freebsd.yaml
|
|
|
|
when: 'os_flavor == "freebsd"'
|
|
|
|
|
|
|
|
- import_tasks: tasks/peruser_linux.yaml
|
|
|
|
when: 'os_flavor == "linux"'
|