In this recipe, we will outline how to deploy virtual machines (using Google Compute Engine) in GCP within our VPCs using the correct subnets that we have deployed. We will also assign the correct network tags in order to enforce the correct security policy on these machines.
Deploying VMs in GCP
Getting ready
The Ansible control machine must be connected to the internet with reachability to GCP public API endpoints, and the VPCs, subnets, and firewall rules need to be deployed as outlined in the previous chapters.
How to do it...
- Update the group_vars/gcp_vpc.yml file...