Provisioning Terraform EC2 Instances via Ansible playbooks & roles

As per the title - I want to use Ansible roles/playbooks to provision Terraform created EC2 instances.

I have read multiple posts on how to run playbooks by using the local/remote-exec provisioners, as Ansible does not have a vendor provided provisioner.

But none of the examples I've seen state whether an Ansible role can be used

Can anyone confirm if this is possible, please?

submitted by /u/InquisitiveProgramme
[link] [comments]

Read more here: https://www.reddit.com/r/Terraform/comments/nwsrt9/provisioning_terraform_ec2_instances_via_ansible/

Content Attribution

This content was originally published by /u/InquisitiveProgramme at Terraform, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: