Configuring Ansible to run commands on the provisioned resources

This is part 3 of the my series on automating my Home Lab. In this chapter, we will be integrating the inventory that was generated by terraform in the last episode. At the end of the exercise, the repository will look something like this with these changes. Ansible Setup You need to install Ansible using… Continue reading Configuring Ansible to run commands on the provisioned resources

Automatic Creation of Inventory from Terraformer

To use ansible on the resources provisioned by Terraformer, ansible needs to know the ips of the provisioned resources. We will be leveraging the local provider. This will allow us to create the inventory file using the output of terraformer. Add the following block to end of outputs.tf This requires the template file inventory.tmpl which… Continue reading Automatic Creation of Inventory from Terraformer