2016-12-14 15:49:34 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- block:
|
2017-03-24 14:06:05 +01:00
|
|
|
- name: install jessie-backports
|
|
|
|
include_role:
|
2017-07-19 08:56:46 +02:00
|
|
|
name: apt
|
2017-05-23 15:13:11 +02:00
|
|
|
tasks_from: backports.yml
|
2016-12-14 15:49:34 +01:00
|
|
|
|
2017-12-08 10:22:32 +01:00
|
|
|
- name: Add exceptions for certbot dependencies
|
2016-12-14 15:49:34 +01:00
|
|
|
copy:
|
2017-03-24 14:06:05 +01:00
|
|
|
src: backports-certbot
|
|
|
|
dest: /etc/apt/preferences.d/z-backports-certbot
|
|
|
|
notify: apt update
|
|
|
|
|
|
|
|
- meta: flush_handlers
|
|
|
|
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:
|
|
|
|
name: 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
|
|
|
|
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"
|