--- - name: setup a user local node folder for development file: path="{{ ansible.user_home }}/.local/nodejs" state=directory owner={{ ansible.user }} - name: setup a npmrc setting for local development file: path="{{ ansible.user_home }}/.npmrc" state=file owner={{ ansible.user }} when: local_development == true