# New vm's not created when connection vars are defined

**URL:** <https://forum.ansible.com/t/new-vms-not-created-when-connection-vars-are-defined/28610>\
**Category:** Ansible Project\
**Created:** [September 20, 2018, 9:39am UTC](https://forum.ansible.com/t/new-vms-not-created-when-connection-vars-are-defined/28610 "2018-09-20T09:39:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruben1](https://avatars.discourse-cdn.com/v4/letter/r/e79b87/32.png) [@Ruben1](https://forum.ansible.com/u/Ruben1)\
**Post date:** [September 20, 2018, 9:39am UTC](https://forum.ansible.com/t/new-vms-not-created-when-connection-vars-are-defined/28610/1 "2018-09-20T09:39:58Z")

</div>

I use Ansible to create instances (vm’s) on Google cloud. When I define the instances to create in my inventory file and put in the connection details in there, for later use, the instances are not created. Ansible assumes (I guess) that the instances already exist.

So, this inventory file works:

```auto
[dc]
dc1
dc2
dc3

```

This inventory doesn’t:

```auto
[dc]
dc1
dc2
dc3

[dc:vars]
ansible_user=admin_cloud
ansible_password=password
ansible_connection=winrm
ansible_winrm_transport=credssp
ansible_winrm_server_cert_validation=ignore

```

```auto

```

```auto
Does anyone has a solution for this? I would like to define my infrastructure in 1 inventory file.

```
