nodejs package requires key/value arguments?

41 views
Skip to first unread message

gitted

unread,
Jul 1, 2015, 4:51:01 PM7/1/15
to ansible...@googlegroups.com
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?

Hank Beatty

unread,
Jul 2, 2015, 9:04:54 AM7/2/15
to ansible...@googlegroups.com
Did you notice there is a space in the word 'pre sent'?
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/886eb831-bca2-4674-adac-b9d5d190f176%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages