I’m trying to install nodejs using:
- name: install node
apt: pkg={{item}} state=pre sent
with_items: - nodejs
- nodejs-legacy
- npm
I’m getting this error:
failed: [host1] => (item=nodejs,nodejs-legacy,npm) => {“failed”: true, “item”: “nodejs,nodejs-legacy,npm”}
msg: this module requires key=value arguments ([‘pkg=nodejs,nodejs-legacy,npm’, ‘state=pre’, ‘sent’])
FATAL: all hosts have already failed – aborting
This used to work for me maybe 3-4 months ago, first time I am using ansible since and I am getting this error.
Ideas?