network platform agnostic ansible_network_os

2,584 views
Skip to first unread message

Christer Hemgren

unread,
Sep 23, 2017, 1:38:17 PM9/23/17
to AWX Project
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

Matthew Jones

unread,
Sep 23, 2017, 3:44:06 PM9/23/17
to Christer Hemgren, AWX Project
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).

--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project+unsubscribe@googlegroups.com.
To post to this group, send email to awx-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/96d2fe75-604d-439e-b618-334d0eceea83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Matt Jones
Principal Software Engineer
Ansible Tower

Christer Hemgren

unread,
Sep 29, 2017, 1:53:58 PM9/29/17
to AWX Project
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 


Den lördag 23 september 2017 kl. 21:44:06 UTC+2 skrev Matthew Jones:
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).
On Sat, Sep 23, 2017 at 1:38 PM, Christer Hemgren <christer...@gmail.com> wrote:
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 received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project...@googlegroups.com.

To post to this group, send email to awx-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/96d2fe75-604d-439e-b618-334d0eceea83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages