在Ansibleangular色中,我生成用户的SSH密钥。 之后,我想打印到屏幕上,并暂停,以便用户可以复制并粘贴到其他地方。 到目前为止,我有这样的东西: – name: Generate SSH keys for vagrant user user: name=vagrant generate_ssh_key=yes ssh_key_bits=2048 – name: Show SSH public key command: /bin/cat $home_directory/.ssh/id_rsa.pub – name: Wait for user to copy SSH public key pause: prompt="Plase add the SSH public key above to your GitHub account" “显示SSH公钥”任务完成,但不显示输出。 TASK: [Show SSH public key] *************************************************** changed: [default] […]