Hi All,
I am trying to setup Ansible with Cisco IOS but receive error listed below. I have provided details below. (attached screen shot for reference)
TASK [run multiple commands on remote nodes] ***********************************
fatal: [CSR1]: FAILED! => {"msg": "network os iOS is not supported"}
Ansible Version: ansible 2.9.27
=====================Host File=================
## Ansible Hosts File for Home Lab
[all:vars]
ansible_user=dhruv
ansible_ssh_pass=cisco
ansible_network_os=iOS
ansible_connection=network_cli
[CSR-Router]
CSR1 ansible_host=192.168.111.10
# host all : refer to all the devices
====== Playbook ================
---
- name: show version and other user level commands
hosts: all
gather_facts: false
connection: local
tasks:
- name: run multiple commands on remote nodes
ios_command:
commands:
- show version
- show ip int brief
- show cry isa sa details
register: print_output
- debug: var=print_output.stdout_lines
============== configuration File =====================
[defaults]
inventory = /home/dhruv/babi.com/hosts
host_key_checking = False
# Don’t worry about RSA Fingerprints
retry_files_enabled = False
# Do not create retry files on job failure
forks = 4
# The number of devices Ansible can connect at once. By default it connects with 5 devices at one time.
Regards,
Dhruv