ansible-roles/evoacme/tasks/certbot.yml

48 lines
1.1 KiB
YAML
Raw Normal View History

---
- block:
2017-03-24 14:06:05 +01:00
- name: install jessie-backports
include_role:
2019-11-29 14:00:25 +01:00
name: evolix/apt
tasks_from: backports.yml
2017-12-08 10:22:32 +01:00
- name: Add exceptions for certbot dependencies
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
- 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
- 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
- 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
- name: Install evoacme custom cron
copy:
src: evoacme.cron
dest: /etc/cron.daily/evoacme
mode: "0755"