且构网

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

保存临时的Ansible Shell脚本,而不是删除

更新时间:2023-12-05 17:50:22

我找到了环境变量-

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.