2016-12-14 15:49:34 +01:00
|
|
|
---
|
|
|
|
|
2019-12-31 16:56:03 +01:00
|
|
|
- name: Use backports for jessie
|
|
|
|
block:
|
|
|
|
- name: install jessie-backports
|
|
|
|
include_role:
|
|
|
|
name: evolix/apt
|
|
|
|
tasks_from: backports.yml
|
|
|
|
|
|
|
|
- name: Add exceptions for certbot dependencies
|
|
|
|
copy:
|
|
|
|
src: backports-certbot
|
|
|
|
dest: /etc/apt/preferences.d/z-backports-certbot
|
|
|
|
notify: apt update
|
|
|
|
|
|
|
|
- meta: flush_handlers
|
2017-03-24 14:06:05 +01:00
|
|
|
when: ansible_distribution_release == "jessie"
|
|
|
|
|
|
|
|
- name: Install certbot with apt
|
|
|
|
apt:
|
|
|
|
name: certbot
|
|
|
|
state: latest
|
|
|
|
|
2017-11-07 12:18:02 +01:00
|
|
|
- include_role:
|
2019-11-29 14:00:25 +01:00
|
|
|
name: evolix/remount-usr
|
2017-03-24 14:06:05 +01:00
|
|
|
|
|
|
|
- name: Remove certbot symlink for apt install
|
|
|
|
file:
|
|
|
|
path: /usr/local/bin/certbot
|
|
|
|
state: absent
|
2016-12-14 15:49:34 +01:00
|
|
|
|
2017-11-25 14:13:06 +01:00
|
|
|
- name: Disable /etc/cron.d/certbot
|
|
|
|
command: mv /etc/cron.d/certbot /etc/cron.d/certbot.disabled
|
|
|
|
args:
|
|
|
|
removes: /etc/cron.d/certbot
|
|
|
|
creates: /etc/cron.d/certbot.disabled
|
2017-09-21 00:26:59 +02:00
|
|
|
|
2018-06-21 17:19:46 +02:00
|
|
|
- name: Disable /etc/cron.daily/certbot
|
|
|
|
command: mv /etc/cron.daily/certbot /etc/cron.daily/certbot.disabled
|
|
|
|
args:
|
|
|
|
removes: /etc/cron.daily/certbot
|
|
|
|
creates: /etc/cron.daily/certbot.disabled
|
|
|
|
|
2017-11-25 14:13:06 +01:00
|
|
|
- name: Install evoacme custom cron
|
2017-09-21 00:26:59 +02:00
|
|
|
copy:
|
2017-11-25 14:13:06 +01:00
|
|
|
src: evoacme.cron
|
|
|
|
dest: /etc/cron.daily/evoacme
|
2017-03-23 16:59:43 +01:00
|
|
|
mode: "0755"
|