diff options
Diffstat (limited to 'roles/acmetool/base/templates')
-rw-r--r-- | roles/acmetool/base/templates/systemd-override.conf.j2 | 9 |
1 files changed, 9 insertions, 0 deletions
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 }} |