Skip to content

Commit

Permalink
npm crap
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Sep 22, 2023
1 parent 7fb4c9b commit b84b2fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/npm/tasks/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
- name: "NPM | Check if NodeJS is installed"
ansible.builtin.command: node --version
register: nodejs_installed
failed_when: nodejs_installed.rc != 0 or nodejs_installed.rc != 2
changed_when: false

- name: "NPM | Check if NodeJS is up to date"
ansible.builtin.command: node --version
register: nodejs_up_to_date
failed_when: nodejs_up_to_date.stdout != nodejs_latest_version.stdout
changed_when: false

- name: "NPM | Show NodeJS version"
Expand Down

0 comments on commit b84b2fb

Please sign in to comment.