Files
no-secrets-athq-ansible/roles/usermanagement/tasks/letsencrypt.yaml
2023-01-14 08:02:39 +01:00

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