A managed node is not responding to Ansible automation. The administrator verifies that the node is reachable via SSH and that the SSH key is correctly deployed. However, 'ansible all -m ping' fails with 'UNREACHABLE'. The automation controller uses a custom execution environment. What is the most likely cause?
Trap 1: The remote user specified in the credential does not have sudo…
Incorrect. Missing sudo access would cause a privilege escalation failure (e.g., 'Permission denied' or 'Missing sudo password'), not an 'UNREACHABLE' status. The host would still be reachable.
Trap 2: The custom execution environment is missing the 'python3' or…
Incorrect. Missing 'python3' or 'python' on the managed node would cause a module execution failure (e.g., 'FAILED! => {"msg": "...python in path..."}'), not an 'UNREACHABLE' status. The ping module itself does not require Python on the remote host; it uses raw SSH.
Trap 3: The automation controller is behind a firewall that blocks SSH.
Incorrect. If a firewall blocked SSH, the administrator would not have verified SSH connectivity. Since SSH is reachable, this is not the cause.
- A
The SSH private key has incorrect permissions on the controller.
Correct. If the SSH private key has incorrect permissions (e.g., group/world readable), SSH will refuse to use it, causing an 'UNREACHABLE' error. The administrator may have verified the key's presence but not its permissions within the execution environment.
- B
The remote user specified in the credential does not have sudo access.
Why wrong: Incorrect. Missing sudo access would cause a privilege escalation failure (e.g., 'Permission denied' or 'Missing sudo password'), not an 'UNREACHABLE' status. The host would still be reachable.
- C
The custom execution environment is missing the 'python3' or 'python' package.
Why wrong: Incorrect. Missing 'python3' or 'python' on the managed node would cause a module execution failure (e.g., 'FAILED! => {"msg": "...python in path..."}'), not an 'UNREACHABLE' status. The ping module itself does not require Python on the remote host; it uses raw SSH.
- D
The automation controller is behind a firewall that blocks SSH.
Why wrong: Incorrect. If a firewall blocked SSH, the administrator would not have verified SSH connectivity. Since SSH is reachable, this is not the cause.