Group vars refactor

This commit is contained in:
Sonny Bakker 2025-03-15 16:57:00 +01:00
parent f7eb8dc56d
commit 755493d155
31 changed files with 355 additions and 398 deletions

15
tasks/arch/nvm.yml Normal file
View file

@ -0,0 +1,15 @@
- name: Set NVM install directory
ansible.builtin.set_fact:
install_dir: '{{ xdg_config_dir }}/nvm'
- name: Remove manually installed nvm install directory
ansible.builtin.file:
path: '{{ install_dir }}'
state: absent
- name: Remove nvm entry from bashrc
ansible.builtin.lineinfile:
path: '{{ ansible_env.HOME }}/.bashrc.override'
line: >
[ -s "{{ install_dir }}/nvm.sh" ] && \. "{{ install_dir }}/nvm.sh" # This loads nvm
state: absent