npm is not a legal parameter at this level in an Ansible playbook

I am trying to install forever through npm on Centos 6.3 version. Getting the error as above if my .yml file is first level of playbook.

Sounds like you're running ansible from a git checkout. If that is the
case, you need to make sure your git submodules have been fetched as
well since the big ansible git submodule split:

See https://groups.google.com/forum/#!msg/ansible-project/TUL_Bfmhr-E/rshKe30KdD8J

Hi Michael,

That should not be a problem because Ansible will self-report and give a helpful error when it can’t find modules this way.

ansi,

How did you install Ansible?

Hi Michael,

I installed ansible through git checkout only. I am just checking if the problem is with git submodules. Will update shortly.
Thanks for the reply :slight_smile:

Hi Michael,

Thanks for the reply.I installed ansible through git checkout only. I used these commands as described on http://docs.ansible.com/intro_installation.html

$ git clone git://github.com/ansible/ansible.git --recursive
$ cd ./ansible 
$ source ./hacking/env-setup 

I tried running following on existing git checkout .
git submodule update --init --recursive

same issue still exist

Hmm, odd.

I don’t know why that would be the case.

Any second thoughts on this are welcome…