# network platform agnostic ansible\_network\_os

**URL:** <https://forum.ansible.com/t/network-platform-agnostic-ansible-network-os/25584>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 23, 2017, 5:38pm UTC](https://forum.ansible.com/t/network-platform-agnostic-ansible-network-os/25584 "2017-09-23T17:38:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christer\_Hemgren](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Christer\_Hemgren](https://forum.ansible.com/u/Christer_Hemgren)\
**Post date:** [September 23, 2017, 5:38pm UTC](https://forum.ansible.com/t/network-platform-agnostic-ansible-network-os/25584/1 "2017-09-23T17:38:17Z")

</div>

Hi

Is it possible to address this in awx? If possible how?

“msg”: “ansible\_network\_os must be specified on this host to use platform agnostic modules”, “failed”

In ansible core it is not well documented but works to add this to the hosts/inventory file.

[Switch]  
192.168.9.5 ansible\_network\_os=ios

Regards  
Christer

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [September 23, 2017, 7:44pm UTC](https://forum.ansible.com/t/network-platform-agnostic-ansible-network-os/25584/2 "2017-09-23T19:44:04Z")

</div>

You can add hostvars in the Hosts section of the Inventory UI. Or apply it in whatever inventory source you are using (in the file directly if you store your inventory file in scm for example).

---

<div class="post-metadata">

**Author:** ![Christer\_Hemgren](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Christer\_Hemgren](https://forum.ansible.com/u/Christer_Hemgren)\
**Post date:** [September 29, 2017, 5:53pm UTC](https://forum.ansible.com/t/network-platform-agnostic-ansible-network-os/25584/3 "2017-09-29T17:53:58Z")

</div>

Hi

Yes it was only the YAML format that not was correct.

The example is with no space after colons but I need to have space after colons to get it to work.

Regards  
Christer
