How to get the description correct after importing Hosts?

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:

{
  "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!

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

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