Ansible GCP | gcp_compute_instance

Hi Guys!!

Can u help me?

I used a subnet that was being created in a region, but when I run the playbook it shows conflict errors. :frowning:

it is possible to use an existing subnet?

Here go my playbook example:

  • 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

Hi

I have the same problem, anyone could help us?

thanks.