--- - 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 }}"