Ansible provides multiple modules to collect the operational state of the different resources that we created in GCP, and we can use these modules to validate the current state of our network resources in the GCP cloud. This provides a programmatic approach for validating a deployment without the need to log in to the portal via the Graphical User Interface (GUI) to check the status of the different components provisioned in GCP. In this recipe, we will outline how to use some Ansible modules to validate the network subnets that we have deployed.
Validating GCP deployment using Ansible
Getting ready
The Ansible control machine must be connected to the internet with the ability to reach GCP public API endpoints, and the GCP...