add symlink helper

- symlinking is done often enough that it makes sense to have a helper
for it
- move appimage and archive helpers to use symlink helper
- fix formatting of air and alacritty
This commit is contained in:
Matthew Stobbs
2026-02-11 12:28:21 -07:00
parent 3df63f1451
commit b1a4780a97
5 changed files with 66 additions and 51 deletions

View File

@@ -37,16 +37,9 @@
exclude: "{{ archive.exclude | default(omit) }}"
- name: Symlink archive files
become: "{{ install_become }}"
become_user: "{{ install_become_user }}"
when:
- archive.links is defined
- archive.links | length > 0
loop: "{{ archive.links }}"
loop_control:
loop_var: lnk
ansible.builtin.file:
state: link
path: "{{ lnk.to }}"
src: "{{ lnk.from }}"
force: "{{ lnk.force | default(omit) }}"
vars:
links: "{{ archive.links }}"
ansible.builtin.include_tasks: helpers/symlink.yml