From fb28a48832d08788f7ac180220e3b684f81a2d4f Mon Sep 17 00:00:00 2001 From: Nikolaos Boutalas Date: Tue, 8 Aug 2023 16:59:14 +0300 Subject: Fix linting errors --- tasks/node.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'tasks/node.yml') 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 -- cgit v1.2.3