Late last year, we introduced a Red Hat Ansible https://www.ansible.com/blog/walking-on-clouds-with-ansible. Organizations are now in the position to utilize their existing infrastructure as code manifests and extend their automation with Terraform and Ansible together.

main.tf terraform { required_providers { #### ansible provider ansible = { version = "~> 0.0.1" source = "terraform-ansible.com/ansibleprovider/ansible"} aws = { source = "hashicorp/aws" version = "~> 4.0"} }} … resource "ansible_host""my_ec2"{ #### ansible host details name = aws_instance.my_ec2.public_dns groups = ["nginx"] variables = { ansible_user = "ansible", ansible_ssh_private_key_file = "~/.ssh/id_rsa", ansible_python_interpreter = "/usr/bin/python3"

With this provider being part of the Red Hat Ansible Certified Content Collection, we also have ongoing maintenance and support available!

Related Articles