summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-05-18 13:04:11 +0300
committerLars Wirzenius <liw@liw.fi>2018-05-18 13:04:11 +0300
commitde0e510a15edb7a44028389f40687c4297bdadad (patch)
tree8e44d1a2ad6d854a68b994c43b3140677af4692d
parent5ea07a9bbe42f34583ecac44da492975317041a5 (diff)
downloaddebian-ansible-de0e510a15edb7a44028389f40687c4297bdadad.tar.gz
Fix: don't run things that require letencrypt vars, unlss desired
-rw-r--r--roles/apache_server/tasks/main.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/apache_server/tasks/main.yml b/roles/apache_server/tasks/main.yml
index a66f85e..b1de7e2 100644
--- a/roles/apache_server/tasks/main.yml
+++ b/roles/apache_server/tasks/main.yml
@@ -31,6 +31,7 @@
touch "$listdir/{{ item.domain }}"
fi
with_items: "{{ static_sites }}"
+ when: letsencrypt
- name: install script to run certbot
template:
@@ -43,6 +44,7 @@
- name: "get initial certificate from Let's Encrypt"
shell: /usr/local/sbin/deploy_static_site_certs
+ when: letsencrypt
- name: create dirs for static site contents
file:
@@ -52,6 +54,7 @@
group: "{{ item.owner }}"
mode: 0755
with_items: "{{ static_sites }}"
+ when: letsencrypt
- name: create log dirs for websites
file: