Thanks to jpena, we can see the error that fails the module is
'An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ValueError: No closing quotation'
ValueError: No closing quotation is an error thrown by shlex python module when a quote in a shell string to be escaped is not matched.
The only unmatched quotes we have are apostrophes in comments. Tried removing those, hope the problem is solved.
I cannot reproduce the error locally, a shlex.split of the shell module command works perfectly with the version of shlex I'm using, with or without single quotes in comments
Thanks to jpena, we can see the error that fails the module is
'An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ValueError: No closing quotation'
ValueError: No closing quotation is an error thrown by shlex python module when a quote in a shell string to be escaped is not matched.
The only unmatched quotes we have are apostrophes in comments. Tried removing those, hope the problem is solved.
I cannot reproduce the error locally, a shlex.split of the shell module command works perfectly with the version of shlex I'm using, with or without single quotes in comments