`skipping: no hosts matched` and the play does nothing
BeginnerTroubleshootingConnection and SSH Failures
Answer
Likely causes → hosts: pattern empty, --limit excludes everything, or the host list resolved to zero because of :& logic.
Diagnose → ansible-playbook site.yml --list-hosts, then remove --limit to compare.
Fix → Correct the pattern or limit; remember that a limit pattern can only narrow what the play targets.
Prevent → Print --list-hosts in pipelines before deploying.
More on Connection and SSH Failures
`UNREACHABLE! => {"msg": "Failed to connect to the host via ssh: Permission denied (publickey,password)."}`Beginner`UNREACHABLE! => {"msg": "Failed to connect to the host via ssh: ssh: connect to host 10.0.1.15 port 22: Connection timed out"}`Beginner`UNREACHABLE! => {"msg": "Failed to connect to the host via ssh: ssh: connect to host web01 port 22: Connection refused"}`Beginner`Host key verification failed.` after rebuilding a serverBeginnerThe playbook hangs for ever at "Gathering Facts" on one hostIntermediate`Failed to connect to the host via ssh: Too many authentication failures`Intermediate