我想在屏幕上自动提示“是/否”而不是手动输入“是”作为输入,这是脚本
ansible-playbook -i hostvnc.ini vnc.yml --user=ubuntu --private-key=rampvnc.pem --extra-vars="dns=ec2-54-205-170-165.compute-1.amazonaws.com"
我传递的 dns 选项实际上是动态生成的。在执行这个脚本的过程中,这里非常提示
PLAY [vnc] ********************************************************************
GATHERING FACTS ***************************************************************
The authenticity of host 'ec2-54-205-170-165.compute-1.amazonaws.com (54.205.170.165)' can't be established.
ECDSA key fingerprint is 31:7f:a1:f0:18:73:f1:6d:b9:dc:16:25:4a:4f:40:5f.
Are you sure you want to continue connecting (yes/no)?
我怎样才能输入“是”作为输入?,我试过这个选项但没有成功
ansible-playbook -i hostvnc.ini vnc.yml --user=ubuntu --private-key=rampvnc.pem --extra-vars="dns=ec2-54-205-170-165.compute-1.amazonaws. com" | 回声“是”