1 2 3 4 5 6
--- - name: "Setting SELinux context for non standard locations" sefcontext: target="{{ hostpath }}" setype="svirt_sandbox_file_t" state="present" reload="yes" - name: "Apply SELinux context for non standard locations" shell: restorecon "{{ hostpath }}"