# inventory plugins and host variables

**URL:** <https://forum.ansible.com/t/inventory-plugins-and-host-variables/38108>\
**Category:** Ansible Developer\
**Created:** [June 15, 2023, 7:36pm UTC](https://forum.ansible.com/t/inventory-plugins-and-host-variables/38108 "2023-06-15T19:36:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![opoplawski](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/opoplawski/32/2112_2.png) [@opoplawski](https://forum.ansible.com/u/opoplawski)\
**Post date:** [June 15, 2023, 7:36pm UTC](https://forum.ansible.com/t/inventory-plugins-and-host-variables/38108/1 "2023-06-15T19:36:20Z")

</div>

I'm working on an enhancement to the cobbler ansible inventory plugin here:

[https://github.com/ansible-collections/community.general/pull/6711](https://github.com/ansible-collections/community.general/pull/6711)

that would add an ip\_address and/or ipv6\_address host variable with the  
primary IP address of the host in cobbler. Is that okay? Should it be  
prefixed? Conditionally added with a plugin config? Not sure if there is any  
standard or best practices among inventory plugins for this kind of thing.

Thanks,

Orion
