From a9ecec103d0f823123baf429a4c9dd1361003096 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Mon, 30 May 2022 16:11:00 +0100 Subject: [PATCH] Restart nginx after removing old repo content The version of nginx on centos-8 appears to keep file handles open, possibly the old /var/www/repo directory persistently. Once the old content is removed and the new shared filesystem mount is created at the web root, ensure that nginx is restarted to close any file handles which are now stale. Change-Id: I941359b1b42aa4a874230a32b438dcefddfb2acb --- tasks/repo_pre_install.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/repo_pre_install.yml b/tasks/repo_pre_install.yml index 5117d28..50253ba 100644 --- a/tasks/repo_pre_install.yml +++ b/tasks/repo_pre_install.yml @@ -68,6 +68,8 @@ when: - _repo_folder_stat.stat.exists - _repo_folder_mountpoint.rc != 0 + notify: + - reload nginx - name: Mount any remote volumes include_role: