I’ve installed ansible on a ZorinOS vm and am attempting (with no luck) to ping a host in the /etc/ansible/hosts file. I can ssh to the host and can also scp files from ansible to the host. Got to be a simple fix…
The ping module is a full round trip test for ansible (not ICMP). It attempts to ssh to the host, invoke python on the remote host, use the python JSON module to return data.
Looking at the error, your remote host is missing python at /usr/bin/python. You may either need to install python on the remote host, which can be accomplished with the raw module (potentially). Or if python is already installed, but in a different location, you will need to set the ansible_python_interpreter variable for that host, pointing to the correct python binary.
Matt,
You’re correct. I was looking at the error message and had the same realization that i probably needed to install python on the remote host. After checking the python version on the remote host i found that python2 wasnt installed. installed, tested and passed.