From 3b0a04e516afdbbc88515745219129b1428de933 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Fri, 11 Sep 2020 15:38:24 +0000 Subject: [PATCH] Allow Apache to serve files from NFS in static hosts --- playbooks/static.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/playbooks/static.yml b/playbooks/static.yml index 2215dea..a31771d 100644 --- a/playbooks/static.yml +++ b/playbooks/static.yml @@ -21,6 +21,11 @@ - apache tasks: + - name: allow apache to access nfs mounts from selinux + seboolean: + name: httpd_use_nfs + state: true + persistent: true - name: share role and home directories to apache copy: dest: /etc/httpd/conf.local.d/public_html.conf