# Odd Problem With Jenkins WAR Running Ansible Task

**URL:** <https://forum.ansible.com/t/odd-problem-with-jenkins-war-running-ansible-task/19597>\
**Category:** Ansible Project\
**Created:** [October 23, 2015, 7:12pm UTC](https://forum.ansible.com/t/odd-problem-with-jenkins-war-running-ansible-task/19597 "2015-10-23T19:12:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeremy\_Vickery](https://avatars.discourse-cdn.com/v4/letter/j/eada6e/32.png) [@Jeremy\_Vickery](https://forum.ansible.com/u/Jeremy_Vickery)\
**Post date:** [October 23, 2015, 7:12pm UTC](https://forum.ansible.com/t/odd-problem-with-jenkins-war-running-ansible-task/19597/1 "2015-10-23T19:12:14Z")

</div>

Hi all!

I have been loving Ansible for system configuration management. I have also been enjoying Jenkins for CI. I have a particularly odd problem, however, that I was hoping someone more familiar with Ansible might be able to help me with (I posted about this Here as well: [http://stackoverflow.com/questions/33248334/obscure-failure-in-simple-ansible-template-from-jenkins](http://stackoverflow.com/questions/33248334/obscure-failure-in-simple-ansible-template-from-jenkins)):

- I am running Jenkins via Tomcat7 on a development machine. Because of firewall rules in-place, having Jenkins available via port 8080 was mandatory, and there is already a substantial commitment to Tomcat7 on that machine. It seemed like running Jenkins from a WAR satisfied those constraints.

- From Jenkins, I am trying to run the following using it’s “Invoke Shell” build mechanism. I also tried the “Ansible Plugin” and pointed the appropriate fields at the files referenced in this below command-line:  
ansible-playbook -vvvv -i ${WORKSPACE}/local-host ${WORKSPACE}/site.yml

‘/bin/bash’ in Jenkins’ shell now, it was ‘/bin/sh’. Neither shells have different behavior with respect to my issue.

- My site.yml:

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [October 23, 2015, 8:36pm UTC](https://forum.ansible.com/t/odd-problem-with-jenkins-war-running-ansible-task/19597/2 "2015-10-23T20:36:11Z")

</div>

can the tomcat user sudo to root? are you supplying a password?
