1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_i3wm.git synced 2024-08-16 10:09:53 +02:00
ansible_role_i3wm/tasks/waybar.yml

45 lines
1.1 KiB
YAML

---
- name: Ensure waybar is installed.
ansible.builtin.package:
name: "{{ item }}"
state: "present"
become: true
with_items:
- 'waybar'
- 'wlogout'
- name: Create waybar config folder
become: true
ansible.builtin.file:
path: "{{ swayusr.home }}/.config/waybar/"
state: directory
mode: '0750'
owner: "{{ swayusr.user }}"
group: "{{ swayusr.user }}"
- name: Deploy waybar weather script
become: true
ansible.builtin.template:
src: 'templates/wttr.py.j2'
dest: "{{ swayusr.home }}/.config/waybar/wttr.py"
mode: '0750'
owner: "{{ swayusr.user }}"
group: "{{ swayusr.user }}"
- name: Deploy waybar stylesheet
become: true
ansible.builtin.template:
src: 'templates/waybar.css.j2'
dest: "{{ swayusr.home }}/.config/waybar/style.css"
mode: '0640'
owner: "{{ swayusr.user }}"
group: "{{ swayusr.user }}"
- name: Deploy waybar config
become: true
ansible.builtin.template:
src: 'templates/waybar.json.j2'
dest: "{{ swayusr.home }}/.config/waybar/config"
mode: '0640'
owner: "{{ swayusr.user }}"
group: "{{ swayusr.user }}"