cerbot: use the legacy script on Debian 8 and 9
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
dde2672715
commit
f940bc3866
|
@ -1,3 +1,4 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
certbot_work_dir: /var/lib/letsencrypt
|
certbot_work_dir: /var/lib/letsencrypt
|
||||||
|
certbot_custom_crontab: True
|
||||||
|
|
|
@ -8,16 +8,6 @@
|
||||||
- include_role:
|
- include_role:
|
||||||
name: evolix/remount-usr
|
name: evolix/remount-usr
|
||||||
|
|
||||||
# - name: Certbot script is downloaded
|
|
||||||
# get_url:
|
|
||||||
# url: https://dl.eff.org/certbot-auto
|
|
||||||
# dest: /usr/local/bin/certbot
|
|
||||||
# mode: '0755'
|
|
||||||
# owner: root
|
|
||||||
# group: root
|
|
||||||
# force: no
|
|
||||||
# notify: install certbot-auto
|
|
||||||
|
|
||||||
- name: Let's Encrypt script is present
|
- name: Let's Encrypt script is present
|
||||||
copy:
|
copy:
|
||||||
src: letsencrypt-auto
|
src: letsencrypt-auto
|
||||||
|
@ -58,3 +48,12 @@
|
||||||
src: cron_jessie
|
src: cron_jessie
|
||||||
dest: /etc/cron.d/certbot
|
dest: /etc/cron.d/certbot
|
||||||
force: yes
|
force: yes
|
||||||
|
when: certbot_custom_crontab
|
||||||
|
|
||||||
|
- name: disable self-upgrade
|
||||||
|
ini_file:
|
||||||
|
dest: "/etc/letsencrypt/cli.ini"
|
||||||
|
section: null
|
||||||
|
option: "no-self-upgrade"
|
||||||
|
value: 0
|
||||||
|
state: present
|
|
@ -7,17 +7,17 @@
|
||||||
- ansible_distribution_major_version is version('8', '>=')
|
- ansible_distribution_major_version is version('8', '>=')
|
||||||
msg: only compatible with Debian 9+
|
msg: only compatible with Debian 9+
|
||||||
|
|
||||||
- name: Install from sources on Debian 8
|
- name: Install legacy script on Debian 8 and 9
|
||||||
include: install-sources.yml
|
include: install-legacy.yml
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == "Debian"
|
- ansible_distribution == "Debian"
|
||||||
- ansible_distribution_major_version is version('8', '=')
|
- ansible_distribution_major_version is version('10', '<')
|
||||||
|
|
||||||
- name: Install package on Debian 9+
|
- name: Install package on Debian 10+
|
||||||
include: install-package.yml
|
include: install-package.yml
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == "Debian"
|
- ansible_distribution == "Debian"
|
||||||
- ansible_distribution_major_version is version('9', '>=')
|
- ansible_distribution_major_version is version('10', '>=')
|
||||||
|
|
||||||
- include: acme-challenge.yml
|
- include: acme-challenge.yml
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,5 @@
|
||||||
Alias /.well-known/acme-challenge /var/lib/letsencrypt/.well-known/acme-challenge
|
Alias /.well-known/acme-challenge /var/lib/letsencrypt/.well-known/acme-challenge
|
||||||
<Directory "/var/lib/letsencrypt/.well-known/acme-challenge">
|
<Directory "/var/lib/letsencrypt/.well-known/acme-challenge">
|
||||||
Options -Indexes
|
Options -Indexes
|
||||||
Allow from all
|
|
||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
---
|
---
|
||||||
|
- name: Do no install certbot crontab
|
||||||
|
set_fact:
|
||||||
|
certbot_custom_crontab: False
|
||||||
|
|
||||||
- include_role:
|
- include_role:
|
||||||
name: evolix/certbot
|
name: evolix/certbot
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue