- 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