diff options
author | Nikolaos Boutalas <nikolaos@boutalas.me> | 2023-08-08 16:59:14 +0300 |
---|---|---|
committer | Nikolaos Boutalas <nikolaos@boutalas.me> | 2023-08-08 17:00:56 +0300 |
commit | fb28a48832d08788f7ac180220e3b684f81a2d4f (patch) | |
tree | c352337506cf8dbbe2db307462ae200dbacb09fc /tasks/node.yml | |
parent | bb94bc3f36c3cd26fb57775663408ed804de2b8f (diff) |
Fix linting errors
Diffstat (limited to 'tasks/node.yml')
-rw-r--r-- | tasks/node.yml | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/tasks/node.yml b/tasks/node.yml index 39b5b07..9699e22 100644 --- a/tasks/node.yml +++ b/tasks/node.yml @@ -1,12 +1,19 @@ -- name: Install nvm - shell: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash - args: - warn: false +- name: Fetch nvm installation script + ansible.builtin.get_url: + url: https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh + dest: /tmp/nvm_install.sh + mode: '0755' + tags: + - node + +- name: Run nvm installation script + ansible.builtin.command: /tmp/nvm_install.sh + changed_when: true tags: - node - name: Enable nvm - lineinfile: + ansible.builtin.lineinfile: path: "~/.config/zsh/.zshrc" line: | export NVM_DIR=~/.nvm |