Hi,

I am using Ansible 2.2 and wanted to implement a step to set a selinux 
context of a file using the sefcontext module. After some work to get it to 
work on RHEL 7; it is successfully writing to the local policy file the new 
rules I defined however the files are still not getting the updates (doing 
ls -Z still shows the old context on the file). Subsequently doing a 
restorecon on the files would force restoration of the policy and hence 
solve the issue but I was wondering if this should be somehow be included 
as functionality of the sefcontext module. Also I see that the module has a 
reload option which by default I'm leaving to True what is the purpose of 
this option exactly?

I can definitely fix the issue by explicitly running the restorecon command 
through ansible, but I would like to understand if there is a better way 
which I'm missing.

Thanks and Regards,
Andy

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f667f51b-6841-49ca-955e-bb7df679c959%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to