1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_sway.git synced 2024-08-16 13:49:49 +02:00
ansible_role_sway/tasks/waybar.yml

45 lines
1.1 KiB
YAML
Raw Normal View History

2024-07-22 14:36:03 +02:00
---
2024-07-23 13:32:33 +02:00
- name: Ensure waybar is installed.
ansible.builtin.apt:
name: "{{ item }}"
state: "present"
become: true
with_items:
- 'waybar'
2024-07-22 14:36:03 +02:00
- name: Create waybar config folder
become: true
ansible.builtin.file:
2024-07-23 13:32:33 +02:00
path: "{{ swayusr.home }}/.config/waybar/"
2024-07-22 14:36:03 +02:00
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 }}"