fix(waybar): remove old config, use ansible_env.HOME
This commit is contained in:
parent
d13b4f1e28
commit
04594cdbbf
1 changed files with 8 additions and 3 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue