---
- name: Do no install certbot crontab
  ansible.builtin.set_fact:
    certbot_custom_crontab: False

- ansible.builtin.include_role:
    name: evolix/certbot

- ansible.builtin.include_role:
    name: evolix/remount-usr


- name: Disable /etc/cron.d/certbot
  ansible.builtin.command:
    cmd: mv -f /etc/cron.d/certbot /etc/cron.d/certbot.disabled
  args:
    removes: /etc/cron.d/certbot

- name: Disable /etc/cron.daily/certbot
  ansible.builtin.command:
    cmd: mv -f /etc/cron.daily/certbot /etc/cron.daily/certbot.disabled
  args:
    removes: /etc/cron.daily/certbot

- name: Install evoacme custom cron
  ansible.builtin.copy:
    src: evoacme.cron
    dest: /etc/cron.daily/evoacme
    mode: "0755"
