- name: Configure subnetwork
gcp_compute_subnetwork:
name: subnetwork_my_project
region: us-central1
network: "{{ network }}"
ip_cidr_range: '{{ item.instance_subnetwork }}'
project: "{{ item.project_id }}"
auth_kind: serviceaccount
service_account_file: "{{ item.credentials_file }}"
state: present
register: subnetwork