Jenkins with ansible error

Hi
I have a anisble play sworking fine from command line. but same play fails when running from jenkins
I have key vault_password_file in ansible.cfg , this has valid path and the .vpass file which is referred with the key, but it is failing when running thru jenkins
this is the Jenkins output

[FT-logs] $ ansible-playbook /var/lib/jenkins/workspace/FT-logs/playbooks/test.yml -i inv/ft -vvv
Using /var/lib/jenkins/workspace/FT-logs/ansible.cfg as config file
ERROR! The vault password file /home/deployer/.vpass was not found
FATAL: command execution failed
[hudson.AbortException](http://stacktrace.jenkins-ci.org/search?query=hudson.AbortException): Ansible playbook execution failed
	at [org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform(AnsiblePlaybookBuilder.java:226)](http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform&entity=method)
	at [org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform(AnsiblePlaybookBuilder.java:199)](http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform&entity=method)
	at [hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)](http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepCompatibilityLayer.perform&entity=method)
	at [hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)](http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepMonitor$1.perform&entity=method)

I'm also running the job as deployer, not sure why  jenkins can't see this file.
But if i log on jenkins server and run same command from   /var/lib/jenkins/workspace/FT - logs/  , it works fine

Her is my ansible.cfg

[defaults]
hostfile = /ts01/automation/inv/hosts
log_path = /ts01/automation/logs/ansible.log
vault_password_file = /home/deployer/.vpass
roles = /ts01/automation/roles/

default user to use for playbooks if user is not specified

(/usr/bin/ansible will use current user as default)

remote_user = deployer

if set, always use this private key file for authentication, same as

if passing --private-key to ansible or ansible-playbook

private_key_file = /home/deployer/.ssh/id_rsa

Hi Anand,

Did you ever get a resolution to this? I have a similar situation where my playbook runs fine on the ansible box, but not remotely using Jenkins Ansible Playbook Plugin.

Cheers