Ansible Role equivalent in Terraform


A Terraform newbie here. I have been using Ansible for sometime and now I have new project where I need to start using Terraform. I have learnt some basics stuff about Terraform. I need to how I can get the Ansible role similar function in Terraform. I have read about a “module” option. I want to make sure I am heading in the right direction.

Any help would be appreciated!


Hi Krishna

I have published a tutorial on how to use both. Terraform for infrastructure provisioning and Ansible for software configuration. In the Terraform tutorial you will find how to use modules.

Please let me know if it is what you need!