我正在创建一个运行shell脚本的状态,但是要安装它需要手动交互。press yes to continue accept license agreement yes or no is the following path correct press yes to continue
cmd.run: - stateful: True
- shell: /
当Linux机器$IP在登录后询问密码时,以下expect脚本工作正常因此我需要更改我的expect脚本,以便支持没有密码的计算机请建议如何适合我的期望脚本,以支持机器与密码和机器没有密码
* target of the following expect script is to check the hostname on remote{ send "yes\r" ; exp_co