Ansible errors fall into four categories: connection, authentication, module, and syntax. Systematic diagnosis starts with identifying the category, then isolating the specific cause.
| Connection | UNREACHABLE | ssh -v user@host | | Authentication | Permission denied, Missing sudo password | SSH keys, sudoers config | | Module | MODULE FAILURE | Module parameters, target state | | Syntax | YAML parse error | Line number in error, indentation |
| -v | Task results | | -vv | Task input parameters | | -vvv | SSH connection details | | -vvvv | Full plugin internals |
Используйте, когда плейбуки терпят неудачу с UNREACHABLE, отказом в разрешении, MODULE FAILURE или неопределенными ошибками переменных. Используйте в случае сбоя подключения SSH или отсутствия пароля sudo. Источник: sigridjineth/hello-ansible-skills.