DEV Community

Discussion on: How to use Ansible with Terraform

Collapse
 
flrichar profile image
Fred Richards

I haven't tried this yet, but I like the idea of using terraform to update ~/.ssh/config, then dynamic inventory from ansible to use the same list of hosts. This has the added benefit of keeping a current list of hosts in your ssh-config for your user, for manual access.

Terraform: registry.terraform.io/modules/mcgr...

Ansible: github.com/ansible/ansible/blob/de...