remove old binaries is not checked
- name: remove old binaries
file:
path: '{{ item }}'
state: absent
with_items:
- /usr/bin/npm
- /usr/bin/npx
become: yes
tags:
- npm
Doesn't check if there are already set to the correct binaries.