From af782d54117a5512ec6135068d1f8c78eb5db2f9 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 18 Dec 2019 14:50:36 +0100 Subject: minor changes to acmetool role --- roles/acmetool/base/templates/systemd-override.conf.j2 | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'roles/acmetool/base/templates/systemd-override.conf.j2') diff --git a/roles/acmetool/base/templates/systemd-override.conf.j2 b/roles/acmetool/base/templates/systemd-override.conf.j2 index aec6f034..dc62cb05 100644 --- a/roles/acmetool/base/templates/systemd-override.conf.j2 +++ b/roles/acmetool/base/templates/systemd-override.conf.j2 @@ -1,3 +1,12 @@ +{% if acmetool_challenge_webroot_path is defined %} +[Unit] +# In case the webroot path is hosted by a filesystem that is +# using a systemd automount unit the ReadWritePaths= below does +# prevent the unit from being loaded when the filesystem is +# not yet mounted. +RequiresMountsFor={{ acmetool_challenge_webroot_path }} +{% endif %} + [Service] {% if acmetool_http_proxy is defined %} Environment=http_proxy={{ acmetool_http_proxy }} -- cgit v1.2.3