如何解决Ansible Expect模块问题-安装程序使我在新行中进行响应
我有一个有趣的问题。我正在使用Expect模块来安装应用程序。一切正常,直到最后一个问题。
它确实是这样的。
Enter the default profile name [default] followed by a blank line:
<cursor starts here no at the semi colon>
,如果您手动执行,则响应看起来像这样。 (是的,我知道它很傻,但是二进制安装的方式-我无法控制它)
Enter the default profile name [default] followed by a blank line:
default
The application is now installed message.
由于光标下降到下面的行而导致错误。现在,我尝试做这样的事情
expect:
'':'default'
但是它出错了。还有其他方法吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。