So the thing I found here was that the code to print error messages in
the file module was not quoting strings with spaces in them, leading
to parse errors.
This was done such that the file module could be used without
requiring Python, which allows very basic ansible things
(copy/template) to be run without having python-simplejson installed,
such that you can boostrap ansible to install python-simplejson even
if it means installing a yum config file. (Yeah, corner case, I
know...but useful).
Anyway, I have fixed this such that if you try to run this again, you
should now get proper output.
The test-module script in the "hacking" directory is VERY useful for
testing modules outside of playbooks and the rest of the framework, if
folks are interested in ansible I recommend trying it.
Hi Michael,Unfortunately this still doesn't work. I'm cloning the devel branch. With test-module it works fine, but when I try to create the link via ansible-playbook, I get a failure message. With --debug there is no verbose output as there is with the master branch version. Maybe the first step here is to get --debug to generate more info? Is that something you can fix on devel?
-- Michael
Latest devel or not?
-- Michael
Ok, failed to parse should always show the trace, no flags required. Make sure there is a open ticket.
-- Michael
Thanks, should be fixed by early next week. Meanwhile I recommend using hacking/test-module to find your symlink error, so we can resolve that also. This way you can find the actual TB we are currently not presenting.
-- Michael
There was no error for me so I am afraid you will need to patch it yourself...
-- Michael