Good point. It's seems not officially documented. In my local Ansible
installation I've found the relating code part
in playbook/tasks.py
182 # the command/shell/script modules used to support the
`cmd` arg,
183 # which corresponds to what we now call _raw_params, so
move that
184 # value over to _raw_params (assuming it is empty)
185 if action in ('command', 'shell', 'script'):
186 if 'cmd' in args:
187 if args.get('_raw_params', '') != '':
188 raise AnsibleError("The 'cmd' argument cannot
be used when other raw parameters are specified."
189 " Please put everything in
one or the other place.", obj=ds)
190 args['_raw_params'] = args.pop('cmd')
On Tuesday, October 17, 2017 at 12:22:11 AM UTC+2, [email protected] wrote:
>
> Ah, thank you very much! I actually had seen that SO post before but
> realize now when I tried it I screwed up (I had left the vertical bar
> character on the "shell" line, not the command line.) Now I see it does in
> fact work.
>
> But one further question... Where is "cmd" documented?
>
>
--
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/ce8a4a1f-081b-424b-8c87-e5b279a997a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.