create links is not checked
- name: create links
file:
src: '{{ npm_globals_path }}/bin/{{ item }}'
dest: '/usr/bin/{{ item }}'
state: link
with_items:
- npm
- npx
become: yes
tags:
- npm
Doesn't check if the correct links already exist.