summaryrefslogtreecommitdiff
path: root/roles/apache_server/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apache_server/tasks/main.yml')
-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: