mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
Support Ubuntu 16.04 out of the box
This commit is contained in:
parent
92ef96faff
commit
e82a68e331
@ -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.
|
- name: Install Certbot.
|
||||||
package: name=certbot state=present
|
package: "name={{ certbot_package }} state=present"
|
||||||
|
|
||||||
- name: Set Certbot script variable.
|
- name: Set Certbot script variable.
|
||||||
set_fact:
|
set_fact:
|
||||||
certbot_script: certbot
|
certbot_script: "{{ certbot_package }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user