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

44 lines
1.1 KiB
YAML
Raw Normal View History

- 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/waybar"
2023-02-02 04:14:20 +00:00
- ".config/sway"
- ".config/sway/config.d"
- 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: waybar_config.json
dest: .config/waybar/config
- src: style.css
dest: .config/waybar/style.css
2022-11-25 20:53:43 +00:00
- name: Configure dotfiles (conf directory)
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:
- waybar
- import_tasks: tasks/peruser_freebsd.yaml
when: 'os_flavor == "freebsd"'
- import_tasks: tasks/peruser_linux.yaml
when: 'os_flavor == "linux"'