On inspection, and assuming the documentation is correct, this is a bug:
submitted PR 974 to ansible-modules-core

On Thursday, 19 March 2015 14:24:57 UTC, Ian Clegg wrote:
>
> Hi all,
>
> According to the documentation it should be possible to install multiple 
> windows features at once by comma separating them using the win_feature 
> module:
>
> http://docs.ansible.com/win_feature_module.htm
> $ ansible -i hosts -m win_feature -a "name=Web-Server,Web-Common-Http" all
>
>
> Initially it fails with:
> SERVER2008R2 | FAILED >> {
>     "failed": true,
>     "msg": "A parameter cannot be found that matches parameter name 
> 'IncludeManagementTools'."
> }
>
> Ok, so Dimitri found this is fixed in the latest devel, so lets patch with 
> the latest:
>  
> https://github.com/ansible/ansible-modules-core/blob/devel/windows/win_feature.ps1
>  
> <https://github.com/ansible/ansible-modules-core/blob/devel/windows/win_feature.ps1>
>
> Now we get:
>
> SERVER2008R2 | FAILED >> {
>     "changed": false,
>     "exitcode": "InvalidArgs",
>     "failed": true,
>     "feature_result": [],
>     "msg": "Failed to add feature",
>     "restart_needed": false,
>     "success": false
> }
>
> I can install each windows feature individually with this module, but put 
> them in a comma separated list (as indicated by the documentation) and it 
> fails.
> Is this the ability to install multiple windows features at once a 
> documentation error, or there a bug here?
>
> Thanks
> Ian
>

-- 
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/c76298d6-6215-49f2-9d85-84442f565fb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to