Skip to content

Commit

Permalink
Support Ubuntu 16.04 out of the box
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc authored and exploide committed Mar 25, 2017
1 parent 92ef96f commit e82a68e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tasks/install-with-package.yml
Original file line number Diff line number Diff line change
@@ -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 }}"

0 comments on commit e82a68e

Please sign in to comment.