Version 2 failed to find files in templates

Hi,

I understand that version 2 has more restricted rules to check the syntax, but I am puzzled by following template error:

  • name: test template
    template: src=test.j2 dest=/tmp/test.txt

fatal: [testv2]: FAILED! => {“changed”: false, “failed”: true, “msg”: “Failed to get information on remote file (/tmp/test.txt): unsupported parameter for module: checksum_algo”}

$ cat templates/test.j2
test: test

Thank you.

Kind regards,

  • j

Sorry for wrong subject in this post, there were another template test which could not find template files in the templates directory of the roles. No problems when running under version 1.9.

fatal: [testansiblev2]: FAILED! => {“changed”: false, “failed”: true, “msg”: “IOError: [Errno 2] No such file or directory: u’/testansiblev2/test_build/test.j2’”}

We are totally stuck with the issue at the moment, can anyone kindly help how to fix it or workarounds to pass it?

Thank you very much.

Kind regards.

Thanks, don’t worry about it.