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
This commit is contained in:
Jonathan Rosser 2022-05-30 16:11:00 +01:00
parent b0fe7fd14d
commit a9ecec103d
1 changed files with 2 additions and 0 deletions

View File

@ -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: