# Ansible inventory error

**URL:** <https://forum.ansible.com/t/ansible-inventory-error/25629>\
**Category:** Ansible Project\
**Created:** [September 28, 2017, 7:25pm UTC](https://forum.ansible.com/t/ansible-inventory-error/25629 "2017-09-28T19:25:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zimidar\_Boy](https://avatars.discourse-cdn.com/v4/letter/z/0ea827/32.png) [@Zimidar\_Boy](https://forum.ansible.com/u/Zimidar_Boy)\
**Post date:** [September 28, 2017, 7:25pm UTC](https://forum.ansible.com/t/ansible-inventory-error/25629/1 "2017-09-28T19:25:26Z")

</div>

Hi,  
i have put one ip address like this 2.2.2.2 lab in hosts file. After that i made a group in inventory file of ansible like this [labs-section]. Then i tried to ping using ansible -m ping labs-section but its showing unreachable. I had also shared ssh keys and when i ssh lab i logged in without prompt for password.  
lab
