summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Copeland <ben.copeland@linaro.org>2017-05-31 18:37:59 +0100
committerBen Copeland <ben.copeland@linaro.org>2017-06-01 09:12:55 +0000
commitf2a349699f449ef063853101d2b767f2ef5a925c (patch)
tree212101bf65dae2425801644e9ccfa195c893734c
parent136c5a3d9984ac33bd524c8bc952d3118ed98e54 (diff)
letsencrypt: Ensure role only gets deployed to Xenial serversHEADmaster
Change-Id: I0a721ddc3bb775a16c08c3ea688f27feff8e24e9 Reviewed-on: https://review.linaro.org/19851 Reviewed-by: Andy Doan <andy.doan@linaro.org>
-rw-r--r--roles/letsencrypt/tasks/main.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/letsencrypt/tasks/main.yml b/roles/letsencrypt/tasks/main.yml
index 6b3fa6f..a41b9aa 100644
--- a/roles/letsencrypt/tasks/main.yml
+++ b/roles/letsencrypt/tasks/main.yml
@@ -5,12 +5,14 @@
with_items:
- letsencrypt
- python-letsencrypt-apache
- when: "ansible_distribution_major_version >= 16"
+ when: ansible_distribution_release == "xenial"
- name: Install cert for {{hostname}}
command: letsencrypt -n --apache --agree-tos --email "{{email}}" -d "{{hostname}}"
args:
creates: /etc/letsencrypt/live/{{hostname}}/fullchain.pem
+ when: ansible_distribution_release == "xenial"
- name: Ensure letsencrypt renewal cron is installed
template: src=letsencrypt-crontab.cron dest=/etc/cron.d/letsencrypt-crontab
+ when: ansible_distribution_release == "xenial"