# Create GCE instances msg: Unexpected response: {}

**URL:** <https://forum.ansible.com/t/create-gce-instances-msg-unexpected-response/17367>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [January 24, 2015, 7:59pm UTC](https://forum.ansible.com/t/create-gce-instances-msg-unexpected-response/17367 "2015-01-24T19:59:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faisal\_Rabbani](https://avatars.discourse-cdn.com/v4/letter/f/f04885/32.png) [@Faisal\_Rabbani](https://forum.ansible.com/u/Faisal_Rabbani)\
**Post date:** [January 24, 2015, 7:59pm UTC](https://forum.ansible.com/t/create-gce-instances-msg-unexpected-response/17367/1 "2015-01-24T19:59:50Z")

</div>

Hi,  
I am trying to create new instance via ansible gce module but getting this message:

PLAY [localhost] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK: [Launch instances] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
failed: [localhost → 127.0.0.1] =\> {“changed”: false, “failed”: true}  
msg: Unexpected response: {}

FATAL: all hosts have already failed – aborting  
This is my playbook:

local\_action:  
module: gce  
name: test-instance  
zone: us-central1-a  
machine\_type: f1.micro  
image: ubuntu-14-10  
service\_account\_email: ####################@developer.gserviceaccount.com  
pem\_file: /root/.ssh/key  
project\_id: 234sda  
register: gce

---

<div class="post-metadata">

**Author:** ![Anatoliy\_Kovalenko](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@Anatoliy\_Kovalenko](https://forum.ansible.com/u/Anatoliy_Kovalenko)\
**Post date:** [October 9, 2015, 12:56pm UTC](https://forum.ansible.com/t/create-gce-instances-msg-unexpected-response/17367/2 "2015-10-09T12:56:58Z")

</div>

I have the same issue. I use a gce\_module of ansible which uses apache-libcloud. When I try to run a google instance, I get an error - failed: [localhost] =\> {“changed”: false, “failed”: true} msg: Unexpected response: {}

What can possibly cause it?

---

<div class="post-metadata">

**Author:** ![Anatoliy\_Kovalenko](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@Anatoliy\_Kovalenko](https://forum.ansible.com/u/Anatoliy_Kovalenko)\
**Post date:** [October 13, 2015, 7:02pm UTC](https://forum.ansible.com/t/create-gce-instances-msg-unexpected-response/17367/3 "2015-10-13T19:02:34Z")

</div>

Any ideas or help would be very much appreciated! can’t resolve it by ourselves

---

<div class="post-metadata">

**Author:** ![dean](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@dean](https://forum.ansible.com/u/dean)\
**Post date:** [December 15, 2015, 9:54pm UTC](https://forum.ansible.com/t/create-gce-instances-msg-unexpected-response/17367/4 "2015-12-15T21:54:12Z")

</div>

Has anyone resolved this issue? I am experiencing the same thing but cannot find the cause of the error.
