network platform agnostic ansible_network_os

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

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).

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