summaryrefslogtreecommitdiff
path: root/roles/apache_server/tasks/main.yml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-05-18 16:10:00 +0300
committerLars Wirzenius <liw@liw.fi>2018-05-18 16:10:00 +0300
commit327610bad876a6c9ba4a7dbbb760ecfacb857c95 (patch)
tree1117fd4c1b9a4b8f027fb0e564c8ce9c1cdb35a8 /roles/apache_server/tasks/main.yml
parentde0e510a15edb7a44028389f40687c4297bdadad (diff)
downloaddebian-ansible-327610bad876a6c9ba4a7dbbb760ecfacb857c95.tar.gz
Change: allow .well-known dir be outside webroot
Diffstat (limited to 'roles/apache_server/tasks/main.yml')
-rw-r--r--roles/apache_server/tasks/main.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/roles/apache_server/tasks/main.yml b/roles/apache_server/tasks/main.yml
index b1de7e2..808d8e9 100644
--- a/roles/apache_server/tasks/main.yml
+++ b/roles/apache_server/tasks/main.yml
@@ -24,11 +24,13 @@
- name: "create list of domains for static sites to get Let's Encrypt certs for"
shell: |
+ listdir="/etc/letsencrypt/static_sites"
+ wellknown="/srv/letsencrypt"
+ mkdir -p "$listdir" "$wellknown"
if [ "{{ item.letsencrypt|default(false) }}" = True ]
then
- listdir="/etc/letsencrypt/static_sites"
- mkdir -p "$listdir"
touch "$listdir/{{ item.domain }}"
+ mkdir -p "$wellknown/{{ item.domain }}"
fi
with_items: "{{ static_sites }}"
when: letsencrypt