Group vars refactor
This commit is contained in:
parent
f7eb8dc56d
commit
755493d155
31 changed files with 355 additions and 398 deletions
15
tasks/arch/nvm.yml
Normal file
15
tasks/arch/nvm.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue