A.5. 在多个主机上执行 restorecon 模板
本例演示了如何根据在多个主机上 Example restorecon Template 中创建的模板来运行作业。该作业会在 /home/ 目录下恢复所有文件中的 SELinux 上下文。
- 进入 Hosts > All hosts 并选择目标主机。从 Select Action 列表中,选择 Schedule Remote Job。
-
在 Job invocation 页面中,选择
Commands作业类别和Run Command - restorecon作业模板。 -
在 目录 字段中键入
/home。 -
将 Schedule 设置为
Execute now。 - 点 Submit。您会进入 Job invocation 页面,从中可以监控作业执行的状态。