且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

保存临时的 ansible shell 脚本而不是删除

更新时间:2023-12-05 18:07:52

我找到了环境变量 -

export ANSIBLE_KEEP_REMOTE_FILES=1

设置此项,然后重新运行 ansible-playbook,然后 ssh 和 cd 到 ~/.ansible/tmp/以查找文件.

Set this, then re-run ansible-playbook, and then ssh and cd over to ~/.ansible/tmp/ to find the files.