- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-11-2020 01:32 AM - edited 02-11-2020 02:14 AM
I am new to ansible and i am trying to do a simple ping test to a host that i want to test. I enter the command "ansible all -m ping" and got this error
10.2x.x.x | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: This system is for the use of authorized users only. Individuals\nusing this computer system without authority, or in excess of \ntheir authority, are subject to having all of their activities on this \nsystem monitored and recorded by system personnel. \n\nIn the course of monitoring individuals improperly using this \nsystem, or in the course of system maintenance, the activities of \nauthorized users may also be monitored. Anyone using this \nsystem expressly consents to such monitoring and is advised that \nif such monitoring reveals possible evidence of criminal activity, \nsystem personnel may provide the evidence of such monitoring to \nlaw enforcement officials.\nxxxg@10.x.x.x: Permission denied (publickey,password,keyboard-interactive).",
"unreachable": true
}
I also copied the ssh-key but it didnt work. What could be wrong? can you give me the steps what should i do after i enter the ip address on the hosts file? I know i need to do something with sshkey but i am not sure exactly what is needed. All i want to do is get the ping test done and i should be able to keep the ball rolling.
02-11-2020 07:35 AM
I don't think that ping
works on PAN-OS appliances because you don't connect to them using ssh, but the API. I think a better test to verify connectivity is to run a playbook that uses panos_op
, and you can use the example from the documentation:
https://ansible-pan.readthedocs.io/en/latest/modules/panos_op_module.html
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!