Add a exclude on logserver so we don't have to wait hours for updates on restorecon on selinux policy updates.

This commit is contained in:
Kevin Fenzi 2016-02-19 16:12:30 +00:00
parent f312b94f4b
commit bf74660e29
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1 @@
/var/log/hosts

View File

@ -28,6 +28,13 @@
- include: "{{ tasks }}/2fa_client.yml"
- include: "{{ tasks }}/motd.yml"
#
# We exclude some dirs from restorecon on updates on logservers as they are very large
# and it takes a long long time to run restorecon over them.
#
- name: exclude some directories from selinux relabeling on updates
copy: src="{{ files }}"/logserver/fixfiles_exclude_dirs dest=/etc/selinux/fixfiles_exclude_dirs owner=root mode=0644
handlers:
- include: "{{ handlers }}/restart_services.yml"
- include: "{{ handlers }}/semanage.yml"