Hi , Im trying to come up with a play that will attach a previously reserved static ip address to a instance on creation by ansible.from https://cloud.google.com/compute/docs/instances-and-network#staticnetworkaddress recommended course seem to use $ gcloud compute instances create example-instance --address example-address-2 to achieve this.Is there an equivalent within the ansible gce module.Would like to use it to setup a nginx server so that the IP persists even if the instance needs to be replaced for whatever reason.
Attaching at creation seems to be the better option as attaching it later increases the complexity of the task.
Well decided to go with Hashicorp’s terraform tool for the IP address ,instance creation and attachment and will be trying to use its local_exec feature to call my playbooks.
Feature request!!! +1