hello dears ,
1-i have issue when i need to use ios_ping , i got this message
[mohamed@localhost proj]$ ansible -m ios_ping 192.168.1.101 -a “dest=192.168.1.101”
[WARNING]: ansible-pylibssh not installed, falling back to paramiko
192.168.1.101 | FAILED! => {
“changed”: false,
“msg”: “Failed to authenticate: Authentication failed: transport shut down or saw EOF”
2-i can ping this ip and ssh from ansible linux
3-this is my config file
[defaults]
inventory = cisco
ask_pass = false
gathering = explicit
interpreter_python = /usr/bin/python
[persistent_connection]
command_timeout = 200
connect_timeout = 200
connect_retry_timeout = 100
this is the inventory
group_varr file
4-device configuration
hostname R1
vrf definition MGMT
address-family ipv4
exit
no ip domain lookup
ip domain name cisco.com
ip ssh version 2
crypto key generate rsa modulus 1024
username root password admin
interface Ethernet0/0
vrf forwarding MGMT
ip address 192.168.1.101 255.255.255.0
no shutdown
exit
line vty 0 4
login local
transport input all
transport output all
exit
5-inventory
[all]
192.168.1.101=R1
192.168.1.102=R2
192.168.1.103=R3
[usa]
192.168.1.101=R1
192.168.1.102=R2
[uk]
192.168.1.103=R3
6-groub_var “usa.yaml”
ansible_connection: ansible.netcommon.network_cli
ansible_network_os: cisco.ios.ios
ansible_user: root
ansible_password: admin