I just found the answer myself. All you have to do is use an 'SSH Task' to 
invoke your ansible playbooks !

On Monday, September 25, 2017 at 11:53:41 AM UTC+10, Byym Reddy wrote:
>
> 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"
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9f73be0f-ac6f-470a-91a9-55ba4757e25f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to