What version of Ansible do you have?  You can find that with the --version 
flag.   You may also want to change your use of -sudo to use --become and 
--ask-become-pass since sudo is deprecated. 

On Thursday, June 30, 2016 at 12:38:18 PM UTC-4, Donald Macaulay wrote:
>
> I am running through an Ansible training course on Pluralsight and I am 
> trying to deploy Apache from onto a remote CentOS box using (Ansible 
> controller is also on CentOS).
>
> The command I am using is:
>
> ansible webservers -i inventory -m yum -a "name=httpd state=present" 
> --sudo -ask-sudo-pass
>
> But I get the following error:
>
> ERROR! this task 'yum' has extra params, which is only allowed in the 
> following modules: command, shell, script, include, include_vars, add_host, 
> group_by, set_fact, raw, meta
>
> This command works in the training material but not in my test lab so I'm 
> a bit stuck with how to proceed.
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/be479138-74ee-4ca5-954e-b26a43bb5516%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to