playbooks are all right (playbook fails cause hosts are not real btw).
ansible-playbook test.yml -i hosts --limit ~host1
PLAY ***************************************************************************
TASK [setup] *******************************************************************
fatal: [host1]: UNREACHABLE! => {“changed”: false, “msg”: “ERROR! SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue”, “unreachable”: true}
fatal: [host10]: UNREACHABLE! => {“changed”: false, “msg”: “ERROR! SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue”, “unreachable”: true}