# How to get the description correct after importing Hosts?

**URL:** <https://forum.ansible.com/t/how-to-get-the-description-correct-after-importing-hosts/7864>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [August 15, 2024, 6:58am UTC](https://forum.ansible.com/t/how-to-get-the-description-correct-after-importing-hosts/7864 "2024-08-15T06:58:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gothsome](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gothsome](https://forum.ansible.com/u/gothsome)\
**Post date:** [August 15, 2024, 6:58am UTC](https://forum.ansible.com/t/how-to-get-the-description-correct-after-importing-hosts/7864/1 "2024-08-15T06:58:30Z")

</div>

Hello again!

I know i cannot set the descrition of the hosts right at the import.

Is there a method to edit them via an playbook?  
I know i can import them with an variables, like:

```auto
{
  "ansible_host": "192.168.151.237",
  "description": "my first own testvm"
}

```

But how do i get them into the description?  
I will get dozends of them and like to see which ip belongs to which host so i dont need to rember all ips.

Thank you very much!

---

<div class="post-metadata">

**Author:** ![gothsome](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gothsome](https://forum.ansible.com/u/gothsome)\
**Post date:** [August 28, 2024, 2:03pm UTC](https://forum.ansible.com/t/how-to-get-the-description-correct-after-importing-hosts/7864/2 "2024-08-28T14:03:10Z")

</div>

i used the hostfile like this, thats enough for me:  
mxhostname ansible\_host=my.host.ip.addr

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [September 27, 2024, 2:03pm UTC](https://forum.ansible.com/t/how-to-get-the-description-correct-after-importing-hosts/7864/3 "2024-09-27T14:03:36Z")

</div>

Closed on September 27, 2024, 2:03pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
