On Thursday, December 26, 2019 at 11:49:26 AM UTC-5, gefela wrote: > > > When I am running a ansible ping from a ubuntu VM to a host using the > command > > ansible -m ping juniper > > It gives me the error message ... > > > > WARNING]: Platform freebsd on host 172.16.203.122 is using the discovered > Python interpreter at /usr/bin/python, but future installation of another > Python interpreter could change this. See > https://docs.ansible.com/ansible/2.9/ > reference_appendices/interpreter_discovery.html for more information. > > 172.16.203.122 | FAILED! => { "ansible_facts": { > "discovered_interpreter_python": "/usr/bin/python" }, "changed": false, > "module_stderr": "Shared connection to 172.16.203.122 closed.\r\n", > "module_stdout": "/bin/sh: /usr/bin/python: Operation not permitted\r\n", > "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 126 > > My hosts file has the following entry .. > > [juniper] > > 172.16.203.122 ansible_ssh_user=root ansible_ssh_pass=my password > > What is missing as i am running out of ideas >
You need to deploy ssh private key for the user you are running on control node, and ssh public key for the same user on managed node, and escalated privileges, for example, sudo for that same user for commands that require escalated privileges (like reboot). - Xinhuan -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a88fe47d-e8d0-43c0-b71d-9163b9b950d7%40googlegroups.com.
