# Unable to set hostnames with their Ip adresses in inventory file

**URL:** <https://forum.ansible.com/t/unable-to-set-hostnames-with-their-ip-adresses-in-inventory-file/24724>\
**Category:** Ansible Project\
**Created:** [June 14, 2017, 10:40am UTC](https://forum.ansible.com/t/unable-to-set-hostnames-with-their-ip-adresses-in-inventory-file/24724 "2017-06-14T10:40:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fatimazahra.bouhajba](https://avatars.discourse-cdn.com/v4/letter/f/f9ae1b/32.png) [@fatimazahra.bouhajba](https://forum.ansible.com/u/fatimazahra.bouhajba)\
**Post date:** [June 14, 2017, 10:40am UTC](https://forum.ansible.com/t/unable-to-set-hostnames-with-their-ip-adresses-in-inventory-file/24724/1 "2017-06-14T10:40:18Z")

</div>

Hi All,  
I’m new to ansible. I’am trying to backup juniper routers configurations, i tried the following Yaml Script:
