We segregate our GCP VPCs using subnets, which is the tool that allows us to place our compute workload into a specific region. Furthermore, subnets provide us with the tool to segregate our virtual network into distinct routing and security domains that we can control in order to provide differentiated routing and security behavior within each subnet. In this recipe, we will outline how to define and provision subnets within the GCP cloud.
Creating subnets
Getting ready
The Ansible control machine must be connected to the internet with reachability to the GCP public API endpoints and the GCP account should be configured as outlined in the previous recipes. Also, the GCP VPC needs to be created as outlined in the previous...