invoke ansible script from Bamboo

24 views
Skip to first unread message

Byym Reddy

unread,
Sep 24, 2017, 9:53:41 PM9/24/17
to Ansible Project
How to invoke ansible script from bamboo ? I have a Bamboo server and Ansible server separately. Do I need to have a Bamboo agent on my Ansible server ?
I'm doing the below, but not sure if this is the right way ?

su --session-command="ssh -i /home/devops/privatekey.pem user@hostname"
ansible-playbook callDiscoveryserver1.yml -u devops --sudo --vault-password-file=vault.txt --extra-vars "version=release/1.0.1.0_18"


Byym Reddy

unread,
Sep 25, 2017, 1:20:08 AM9/25/17
to Ansible Project
I just found the answer myself. All you have to do is use an 'SSH Task' to invoke your ansible playbooks !
Reply all
Reply to author
Forward
0 new messages