# Ansible GCP |   gcp\_compute\_instance

**URL:** <https://forum.ansible.com/t/ansible-gcp-gcp-compute-instance/30341>\
**Category:** Ansible Project\
**Tags:** gcp\
**Created:** [May 15, 2019, 5:21pm UTC](https://forum.ansible.com/t/ansible-gcp-gcp-compute-instance/30341 "2019-05-15T17:21:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabio\_Maia](https://avatars.discourse-cdn.com/v4/letter/f/b4bc9f/32.png) [@Fabio\_Maia](https://forum.ansible.com/u/Fabio_Maia)\
**Post date:** [May 15, 2019, 5:21pm UTC](https://forum.ansible.com/t/ansible-gcp-gcp-compute-instance/30341/1 "2019-05-15T17:21:19Z")

</div>

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. ☹

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

---

<div class="post-metadata">

**Author:** ![Guilherme\_Oliveira](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@Guilherme\_Oliveira](https://forum.ansible.com/u/Guilherme_Oliveira)\
**Post date:** [May 15, 2019, 5:25pm UTC](https://forum.ansible.com/t/ansible-gcp-gcp-compute-instance/30341/2 "2019-05-15T17:25:35Z")

</div>

Hi

I have the same problem, anyone could help us?

thanks.
