# issue with ansible

**URL:** <https://forum.ansible.com/t/issue-with-ansible/25594>\
**Category:** Ansible Project\
**Created:** [September 26, 2017, 8:41am UTC](https://forum.ansible.com/t/issue-with-ansible/25594 "2017-09-26T08:41:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user56](https://avatars.discourse-cdn.com/v4/letter/u/f05b48/32.png) [@user56](https://forum.ansible.com/u/user56)\
**Post date:** [September 26, 2017, 8:41am UTC](https://forum.ansible.com/t/issue-with-ansible/25594/1 "2017-09-26T08:41:28Z")

</div>

Hey guys i’m just configuring my ansible and actually all is ok but whhen i write to file /hosts , information about my server

testserver ansible\_host=refresh   
ansible\_user=sshacc ansible\_private\_key\_file=/home/sshacc/.ssh/id\_rsa

and i’m type ansible testserver -i hosts -m ping  
the shell return to me

[WARNING]: \* Failed to parse /etc/ansible/hosts with ini plugin:  
/etc/ansible/hosts:6: Error parsing host definition 'testserver  
ansible\_host=refresh ': No escaped character

[WARNING]: Unable to parse /etc/ansible/hosts as an inventory source

[WARNING]: No inventory was parsed, only implicit localhost is available

[WARNING]: Could not match supplied host pattern, ignoring: all

[WARNING]: provided hosts list is empty, only localhost is available

[WARNING]: Could not match supplied host pattern, ignoring: testserver

[WARNING]: No hosts matched, nothing to do

P.S this is my local virtual machine , pinging is ok .  
what’s the trouble and how to fix that?

---

<div class="post-metadata">

**Author:** ![Gildas\_Cotomale](https://avatars.discourse-cdn.com/v4/letter/g/838e76/32.png) [@Gildas\_Cotomale](https://forum.ansible.com/u/Gildas_Cotomale)\
**Post date:** [September 27, 2017, 6:55pm UTC](https://forum.ansible.com/t/issue-with-ansible/25594/2 "2017-09-27T18:55:52Z")

</div>

Hello,

Looks like there’s a trouble with your file.  
Can you post a minimal content that show the problem?
