fix(waybar): remove old config, use ansible_env.HOME

This commit is contained in:
Ivan R. 2024-04-13 14:25:16 +05:00
parent d13b4f1e28
commit 04594cdbbf
Signed by: lumin
GPG key ID: E0937DC7CD6D3817

View file

@ -6,18 +6,23 @@
- psmisc # killall command
- name: Create waybar config dir
ansible.builtin.file:
path: /home/lumin/.config/waybar
path: "{{ ansible_env.HOME }}/.config/waybar"
state: directory
mode: '1770'
- name: Remove old config
notify: Restart waybar
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.config/waybar/config"
state: absent
- name: Copy waybar config
notify: Restart waybar
ansible.builtin.copy:
src: files/waybar.jsonc
dest: /home/lumin/.config/waybar/config.jsonc
dest: "{{ ansible_env.HOME }}/.config/waybar/config.jsonc"
mode: '0660'
- name: Copy waybar styles
notify: Restart waybar
ansible.builtin.copy:
src: files/waybar.css
dest: /home/lumin/.config/waybar/style.css
dest: "{{ ansible_env.HOME }}/.config/waybar/style.css"
mode: '0660'