4.11. 配置 Satellite 以使用替代目录在主机上执行远程作业
Ansible 将需要自己的文件放置在服务器端的 /tmp
目录中。如果需要,您可以选择设置不同的目录。
流程
在 Satellite 服务器或 Capsule 服务器上,创建一个新目录:
mkdir /My_Remote_Working_Directory
# mkdir /My_Remote_Working_Directory
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 从默认
/tmp
目录中复制 SELinux 上下文:chcon --reference=/tmp /My_Remote_Working_Directory
# chcon --reference=/tmp /My_Remote_Working_Directory
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 将您的 Satellite 服务器或 Capsule 服务器配置为使用新目录:
satellite-installer \ --foreman-proxy-plugin-ansible-working-dir /My_Remote_Working_Directory
# satellite-installer \ --foreman-proxy-plugin-ansible-working-dir /My_Remote_Working_Directory
Copy to Clipboard Copied! Toggle word wrap Toggle overflow