24 lines
693 B
YAML
24 lines
693 B
YAML
# tasks file for dotfiles
|
|
- name: Ensure stow is installed
|
|
become: true
|
|
pacman:
|
|
name:
|
|
- stow
|
|
state: present
|
|
|
|
- name: Remove existing config files before stowing
|
|
shell: |
|
|
[ -L ~/.config/hypr/hyprland.conf ] || rm -f ~/.config/hypr/hyprland.conf
|
|
[ -L ~/.config/starship ] || rm -rf ~/.config/starship
|
|
[ -L ~/.config/zellij ] || rm -rf ~/.config/zellij
|
|
changed_when: false
|
|
|
|
- name: Create symlinks with stow
|
|
shell: |
|
|
cd {{ lookup('env', 'HOME') }}/archsetup/dotfiles
|
|
stow -t ~ hypr starship zellij
|
|
args:
|
|
executable: /bin/bash
|
|
creates: "{{ lookup('env', 'HOME') }}/.config/starship"
|
|
chdir: "{{ lookup('env', 'HOME') }}/archsetup/dotfiles"
|