-
Edit Nodejs version in defaults/main.yaml or in the nodejs.yaml playbook
-
nodejs.yaml - playbook:
- hosts: all.
gather_facts: true
become: true
roles:
- ansible-nodejs vars: nodejs_version: 10.x
- Run ansible-playbook:
ansible-playbook -i hosts nodejs.yaml