Thanks Rilindo for the quick response and much appreciated. I will 
appreciate if you can provide me with a basic working example to understand 
it and I will implement it once i play around with it. Thanks in Advance.

Best Regards,

Kaushal

On Saturday, 23 July 2022 at 21:13:43 UTC+5:30 [email protected] wrote:

> Hi Kausal,
>
> Depending on the provider, you can use cloud-init to:
>
> - Invoke an installation of Ansible
> - Download the Ansible code
> - Run the code from a local installed instance of Ansible
>
> - Rilindo
>
> On Jul 23, 2022, at 10:22 AM, [email protected] <[email protected]> 
> wrote:
>
> Hi,
>
> Is there a way to execute Ansible playbooks in Terraform main.tf file? 
> For example I want to deploy nginx webserver inside GCP GCE VM Instance 
> using Ansible playbook once GCP GCE VM Instance is provisioned using 
> Terraform.
>
> Please guide. Thanks in advance.
>
> Best Regards,
>
> Kaushal
>
> -- 
> 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/d3e76019-0911-4577-a9e4-85575eb885a5n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/ansible-project/d3e76019-0911-4577-a9e4-85575eb885a5n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8fe461b7-cec8-428a-a031-1019847fc13fn%40googlegroups.com.

Reply via email to