roles/samba-dc: Correct restorecon path

Evidently, some files in `/var/lib/samba` match multiple file context
rules. Thus, when running `restorecon` against the entire
`/var/lib/samba` directory, files in the `bind-dns` subdirectory may end
up with the wrong label. To work around this issue, `restorecon` is now
run only on that subdirectory to ensure the correct labels are applied.

This is likely to cause problems when a full filesystem relabel is
scheduled.
jenkins-master
Dustin 2018-02-18 10:06:20 -06:00
parent 7191903801
commit 94154a9f2b
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
- name: restore samba file contexts - name: restore samba file contexts
command: restorecon -RF /var/lib/samba command: restorecon -RF /var/lib/samba/bind-dns
- name: display generated admin password - name: display generated admin password
debug: debug:
var=samba_dc_provision.admin_password var=samba_dc_provision.admin_password