[FAQ] Timeout (12s) waiting for privilege escalation prompt

[问题澄清]

ansible 安装过程中遇到报错 Timeout (12s) waiting for privilege escalation prompt

TASK [systemd : create systemd service configuration] ************************************************************************************************************************ fatal: [192.168.159.130]: FAILED! => {“msg”: "Timeout (12s) waiting for privilege escalation prompt: "} to retry, use: --limit @/home/tidb/tidb-ansible/retry_files/deploy.retry 。。。 ERROR MESSAGE SUMMARY

[问题原因]

缺少依赖包,可能是 epel-release git curl sshpass python2-pip等某些包没有安装

[解决方案]

  1. 重新安装添加参数 -vvv 查看具体报错原因

  2. 如果确认缺少以上依赖包,进行安装

yum -y install epel-release git curl sshpass &&
yum -y install python2-pip
sudo pip install -r ./requirements.txt

[参考案例]

1 个赞