evoacme: crontab management
* simply rename certbot script to disable it * use "evoacme" as file name for our custom cron script
This commit is contained in:
parent
ab0b867a8c
commit
375c3e6760
|
@ -28,26 +28,14 @@
|
||||||
path: /usr/local/bin/certbot
|
path: /usr/local/bin/certbot
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: stat /etc/cron.d/certbot
|
- name: Disable /etc/cron.d/certbot
|
||||||
stat:
|
command: mv /etc/cron.d/certbot /etc/cron.d/certbot.disabled
|
||||||
path: /etc/cron.d/certbot
|
args:
|
||||||
register: etc_cron_d_certbot
|
removes: /etc/cron.d/certbot
|
||||||
|
creates: /etc/cron.d/certbot.disabled
|
||||||
|
|
||||||
- name: Rename certbot dpkg cron to .disabled
|
- name: Install evoacme custom cron
|
||||||
copy:
|
copy:
|
||||||
remote_src: True
|
src: evoacme.cron
|
||||||
src: /etc/cron.d/certbot
|
dest: /etc/cron.daily/evoacme
|
||||||
dest: /etc/cron.d/certbot.disabled
|
|
||||||
when: etc_cron_d_certbot.stat.exists
|
|
||||||
|
|
||||||
- name: Remove certbot dpkg cron
|
|
||||||
file:
|
|
||||||
path: /etc/cron.d/certbot
|
|
||||||
state: absent
|
|
||||||
|
|
||||||
- name: Install certbot custom cron
|
|
||||||
copy:
|
|
||||||
src: certbot.cron
|
|
||||||
dest: /etc/cron.daily/certbot
|
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue