summaryrefslogtreecommitdiff
path: root/roles/acmetool/base/templates
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-12-18 14:50:36 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-12-18 14:50:36 +0100
commitaf782d54117a5512ec6135068d1f8c78eb5db2f9 (patch)
tree19b09f03746b4f7fa6cfb7176e01be7576e28220 /roles/acmetool/base/templates
parentsk-cloudia: upgrade netxtcloud (diff)
minor changes to acmetool role
Diffstat (limited to 'roles/acmetool/base/templates')
-rw-r--r--roles/acmetool/base/templates/systemd-override.conf.j29
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 }}