this is my hosts file
ansible_host=XX.XXX.xx.x ansible_port=9301
[all:vars]
ansible_python_interpreter=/usr/bin/python3
and my command is: ansible all -i hosts -m ping
and I keep getting:
ansible_host=xx.xxx.xxx.xx | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname ansible_host=xx.xxx.xxx.xx: Name or service not known", "unreachable": true }