From e82a68e331f7ac67140220f477524f6f05d901b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Sch=C3=B6ldstr=C3=B6m?= Date: Sat, 25 Mar 2017 08:59:38 -0500 Subject: [PATCH] Support Ubuntu 16.04 out of the box --- tasks/install-with-package.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tasks/install-with-package.yml b/tasks/install-with-package.yml index 0155963..bdc1ede 100644 --- a/tasks/install-with-package.yml +++ b/tasks/install-with-package.yml @@ -1,7 +1,17 @@ --- +- name: Define certbot_package (Ubuntu 16.04). + set_fact: + certbot_package: letsencrypt + when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '16.04' + +- name: Define certbot_package. + set_fact: + certbot_package: certbot + when: certbot_package is undefined + - name: Install Certbot. - package: name=certbot state=present + package: "name={{ certbot_package }} state=present" - name: Set Certbot script variable. set_fact: - certbot_script: certbot + certbot_script: "{{ certbot_package }}"