diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-05-18 13:04:11 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-05-18 13:04:11 +0300 |
commit | de0e510a15edb7a44028389f40687c4297bdadad (patch) | |
tree | 8e44d1a2ad6d854a68b994c43b3140677af4692d /roles/apache_server/tasks | |
parent | 5ea07a9bbe42f34583ecac44da492975317041a5 (diff) | |
download | debian-ansible-de0e510a15edb7a44028389f40687c4297bdadad.tar.gz |
Fix: don't run things that require letencrypt vars, unlss desired
Diffstat (limited to 'roles/apache_server/tasks')
-rw-r--r-- | roles/apache_server/tasks/main.yml | 3 |
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: |