Ansible GCP | gcp_compute_instance

27 views
Skip to first unread message

Fabio Maia

unread,
May 15, 2019, 1:21:20 PM5/15/19
to Ansible Project
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


Guilherme Oliveira

unread,
May 15, 2019, 1:25:35 PM5/15/19
to Ansible Project
Hi

I have the same problem, anyone could help us?

thanks.
Reply all
Reply to author
Forward
0 new messages