This example shows how to create a template derived from the Run command - restorecon template created in {ManagingHostsDocURL}Example_restorecon_Template_managing-hosts[Example restorecon Template].
This template does not require user input on job execution, it will restore the SELinux context in all files under the /home/
directory on target hosts.
Create a new template as described in {ManagingHostsDocURL}setting-up-job-templates_managing-hosts[Setting up Job Templates], and specify the following string in the template editor:
<%= render_template("Run Command - restorecon", :directory => "/home") %>