test cron creation

This commit is contained in:
Robert Kaussow 2018-06-23 15:29:05 +02:00
parent d0d4523941
commit 7eff632533
2 changed files with 13 additions and 1 deletions

View File

@ -12,3 +12,15 @@ certbot_preferred_challenges: dns
certbot_server: https://acme-v02.api.letsencrypt.org/directory
certbot_email: mail@example.com
certbot_rsa_key_size: 4096
certbot_domains:
- example.com
certbot_command_arguments:
- "certonly"
- "--agree-tos"
- "--manual"
- "--manual-auth-hook /path/to/authenticator.py"
- "--manual-cleanup-hook /path/to/cleanup.py"
- "--manual-public-ip-logging-ok"
- "-n"
- "-d {{ certbot_domains | join(',') }}"

View File

@ -33,7 +33,7 @@
minute: 55
hour: 3
user: "{{ certbot_user }}"
job: "YUMINTERACTIVE: 0 /usr/sbin/yum-autoupdate"
job: "certbot {{ certbot_command_arguments | join(" ") }}"
cron_file: "{{ certbot_cronfile | default(omit) }}"
become: True
become_user: "{{ certbot_user }}"