ansible –ask-become-pass hangs, seeming waiting for the password

huangapple go评论66阅读模式
英文:

ansible --ask-become-pass hangs, seeming waiting for the password

问题

I have been getting to know ansible, and have successfully run several plays over the last couple of days, including those using --ask-become-pass.

Suddenly, if I use --ask-become-pass, I get the usual prompt for the BECOME password, but it is as though the return key is broken, and all I can do it ctrl-c out.

Running without --ask-become-pass works fine (apart from the lack of permissions).

Running with an additional -vvv gives me some version info before the prompt, but no hints on the reason for the problem.

ansible-playbook [core 2.14.3]
...

Running with ANSIBLE_DEBUG=1 gives me an additional line of logging:

18665 1681123351.90242: starting run

Any hints on how to fix the problem?

英文:

I have been getting to know ansible, and have successfully run several plays over the last couple of days, including those using --ask-become-pass.

Suddenly, if I use --ask-become-pass, I get the usual prompt for the BECOME password, but it is as though the return key is broken, and all I can do it ctrl-c out.

Running without --ask-become-pass works fine (apart from the lack of permissions).

Running with an additional -vvv gives me some version info before the prompt, but no hints on the reason for the problem.

ansible-playbook [core 2.14.3]
...

Running with ANSIBLE_DEBUG=1 gives me an additional line of logging:

18665 1681123351.90242: starting run

Any hints on how to fix the problem?

答案1

得分: 0

看起来我的终端进入了奇怪的状态。输入 reset 足以解决问题。

英文:

It seems that my terminal had got into a strange state. Typing reset was enough to solve the problem.

huangapple
  • 本文由 发表于 2023年4月10日 18:52:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/75976452.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定