I\'m working on a project to deploy a jenkins CI server on centos7 using ansible
And I\'m having problems creating jenkins jobs from an xml template using ansible.
You can use shell redirection by executing the shell. For example, the command 'sh "echo test > hello.txt"' will work as intended. Just wrap the whole command with something like '/bin/sh "java ...>..."'.