Command tries to split a command string into arguments. Sometimes it fails. When it does so it can be extremely frustrating, trying to figure out how to escape a command only for it to be parsed correctly. If it can accept an array of arguments that would take the guesswork out, reduce pain, increase reliability and trust.
ISSUE TYPE
COMPONENT NAME
command https://github.com/ansible/ansible-modules-core/blob/devel/commands/command.py
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Debian 8
SUMMARY
Command tries to split a command string into arguments. Sometimes it fails. When it does so it can be extremely frustrating, trying to figure out how to escape a command only for it to be parsed correctly. If it can accept an array of arguments that would take the guesswork out, reduce pain, increase reliability and trust.
STEPS TO REPRODUCE
One option:
In the code, make
shlex.split(args)
conditional on args being a string.Another option:
EXPECTED RESULTS
I would like command to execute without trying to split the array of arguments.
ACTUAL RESULTS
N/A