From e380c9eff38908aa44092d220bebac97c4b87fe9 Mon Sep 17 00:00:00 2001 From: James Cuzella Date: Wed, 16 Sep 2015 09:40:49 -0600 Subject: [PATCH] JasonGiedymin.nodejs: Fix SHASUM check to work for newer node.js releases which use sha256sum --- tasks/install_from_source.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/install_from_source.yml b/tasks/install_from_source.yml index bb36cb1..ce6233a 100644 --- a/tasks/install_from_source.yml +++ b/tasks/install_from_source.yml @@ -16,7 +16,11 @@ - name: Verify SHASUM of nodejs {{nodejs_version_tag}} shell: curl {{nodejs_shasum_url}} | grep {{nodejs_file_name}} | sha1sum -c chdir={{nodejs_tmp_dir}} - when: wanted_version_installed.rc == 1 + when: wanted_version_installed.rc == 1 and 'SHASUMS256' not in nodejs_shasum_url + +- name: Verify SHA256SUM of nodejs {{nodejs_version_tag}} + shell: curl {{nodejs_shasum_url}} | grep {{nodejs_file_name}} | sha256sum -c chdir={{nodejs_tmp_dir}} + when: wanted_version_installed.rc == 1 and 'SHASUMS256' in nodejs_shasum_url - name: Unpack nodejs {{nodejs_version_tag}} command: tar -xvzf {{nodejs_file_name}} chdir={{nodejs_tmp_dir}}