A
A
Anton2020-06-29 20:25:22
Devops
Anton, 2020-06-29 20:25:22

What are the best practices for creating a dynamic inventory of ansible virtual machines in the cloud created by terraform?

There is an empty cloud.
There is a terraform tf file that describes the entire infrastructure in the cloud.
There are playbooks that need to be run on the desired virtual machines created with terraform and described in the terraform tf file.
The scheme is something like this.
5efa2333b8d0a156790525.png

What are the best practices for creating a dynamic inventory of ansible virtual machines in the cloud created by terraform?

Do I understand correctly that the only correct way to create a dynamic inventory of ansible virtual machines in the cloud created by terraform is to add a DNS record "hostname" and generate a dynamic inventory from hostname and go ansible to virtual machines by DNS records?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
chupasaurus, 2020-06-29
@chupasaurus

Instances must be tagged so as not to wrinkle the brain.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question