# No config file found; using defaults

**URL:** <https://forum.ansible.com/t/no-config-file-found-using-defaults/21231>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [April 21, 2016, 3:09pm UTC](https://forum.ansible.com/t/no-config-file-found-using-defaults/21231 "2016-04-21T15:09:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Anderson](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Post date:** [April 21, 2016, 3:09pm UTC](https://forum.ansible.com/t/no-config-file-found-using-defaults/21231/1 "2016-04-21T15:09:32Z")

</div>

Centos 7  
Ansible 2.1  
Windows 7 on remote node

My inventory file (/etc/ansible/hosts) contains  
[windows]  
ADS-6999 ansible\_host=123.123.123.123

I have configured my windows.yml file as follows

```auto
ansible_user: Administrator
ansible_password: SecretPasswordGoesHere
ansible_port: 5985
ansible_connection: winrm
ansible_winrm_server_cert_validation: ignore

```

```auto

```

```auto
 But when I try to run win_ping I get this:

```

```auto

```

```auto
**$ansible windows -m win_ping -c winrm --verbose**

```

```auto
**No config file found; using defaults**

```

```auto
**ERROR! Syntax Error while loading YAML**

```

```auto

```

```auto
Any suggestions are appreciated.

```

```auto

```

```auto
Jonathan

```

---

<div class="post-metadata">

**Author:** ![Johannes\_Kastl](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Post date:** [May 3, 2016, 6:31am UTC](https://forum.ansible.com/t/no-config-file-found-using-defaults/21231/2 "2016-05-03T06:31:15Z")

</div>

> \*No config file found; using defaults\*

AFAIK this means there is no ansible.cfg, which is not an error, just  
an information

> \*ERROR! Syntax Error while loading YAML\*

In your mail the yaml file had no line breaks, maybe there a windows  
unix linebreak issue?

Johannes
