4.11. 将 Satellite 配置为使用备用目录在主机上执行远程作业
Ansible 将自己的文件放在服务器端,并放入 /tmp 目录中。如果需要,您可以选择设置不同的目录。
流程
在 Satellite 服务器或 Capsule 服务器上创建新目录:
mkdir /My_Remote_Working_Directory
# mkdir /My_Remote_Working_DirectoryCopy to Clipboard Copied! Toggle word wrap Toggle overflow 从默认的
/tmp目录中复制 SELinux 上下文:chcon --reference=/tmp /My_Remote_Working_Directory
# chcon --reference=/tmp /My_Remote_Working_DirectoryCopy 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_DirectoryCopy to Clipboard Copied! Toggle word wrap Toggle overflow