Hi all,
I want to manage a machine running openwrt with ansible. First I got
stuck just connecting to the machine, and I do not find the error:
ansible -m setup 192.168.11.1
192.168.11.1 | UNREACHABLE! => {
"changed": false,
"msg": "SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh",
"unreachable": true
}
I can ssh into the machine without errors with my ssh key loaded into
ssh-agent.
I tried to ansible to the IP, to the FQDN and to the short hostname.
No change, but each works with ssh (.ssh/config contains entries for
IP, hostname and FQDN).
I added ansible_port and ansible_user to the host_vars file for this
machine.
I installed python on the machine.
I tried paramiko but got no further than a sftp error.
I deleted all lines for this host from my ~/.ssh/config file, but
still unreachable.
Using ansible -vvvv shows lots of output, shows that remote port and
user are configured but otherwise no