jenkins+Ansible

46 views
Skip to first unread message

imed khaskhoussi

unread,
Jun 27, 2016, 6:26:53 AM6/27/16
to Ansible Project
Hello , 
i want to execute a playbook from jenkins ,so i installed ansible plugin .but when i try to execute the playbook i got a problem of permission denied .
is there some roles to attribute to jenkins ? 
need some help please .
thank you in advance .

rup

unread,
Jun 27, 2016, 1:55:07 PM6/27/16
to Ansible Project
We use Jenkins but don't bother with the plugin.  I simply create an Execute Shell step at the end of my Jenkins project (earlier steps involve staging code files, etc.) with an entry like this:

ssh ansibl...@ansible.server -C "cd ~ansible_user/playbooks;ansible-playbook -i hostfile play.yml -vv"
Reply all
Reply to author
Forward
0 new messages