mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 08:08:34 +01:00
feat: keycloak & ldap
This commit is contained in:
18
roles/usermanagement/tasks/letsencrypt.yaml
Normal file
18
roles/usermanagement/tasks/letsencrypt.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
- 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
|
||||
Reference in New Issue
Block a user