No config file found; using defaults

690 views
Skip to first unread message

skinnedknuckles

unread,
Apr 21, 2016, 11:09:32 AM4/21/16
to Ansible Project
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

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

 But when I try to run win_ping I get this:

$ansible windows -m win_ping -c winrm --verbose
No config file found; using defaults
ERROR! Syntax Error while loading YAML

Any suggestions are appreciated.

Jonathan

Johannes Kastl

unread,
May 3, 2016, 3:21:30 AM5/3/16
to ansible...@googlegroups.com
On 21.04.16 17:09 skinnedknuckles wrote:

> *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


signature.asc
Reply all
Reply to author
Forward
0 new messages