mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 07:21:40 +01:00
19 lines
566 B
YAML
19 lines
566 B
YAML
- name: install certbot
|
|
apt:
|
|
pkg:
|
|
- certbot
|
|
|
|
- name: Add Cronjob
|
|
cron:
|
|
name: "Cerbot"
|
|
job: "certbot certonly --standalone --preferred-challenges http -d ldap.atlantishq.de --register-unsafely-without-email --non-interactive --agree-tos"
|
|
minute: "30"
|
|
hour: "4"
|
|
day: "1"
|
|
register: cron
|
|
notify: restart slapd
|
|
|
|
- name: Run Cronjob job because it changed
|
|
command: "certbot certonly --standalone --preferred-challenges http -d ldap.atlantishq.de --register-unsafely-without-email --non-interactive --agree-tos"
|
|
when: cron.changed
|