ansible-letsencrypt icon indicating copy to clipboard operation
ansible-letsencrypt copied to clipboard

letsencrypt_cron_renew format differs from regular crontab format

Open wolfsoft opened this issue 7 years ago • 1 comments

Common crontab format is:

# m h dom mon dow user command

But letsencrypt_cron_renew swapped weekday and month:

- name: Create crontab to renew SSL certificates
  cron:
    name: 'renew SSL certificates'
    job: '{{ letsencrypt_install_path }}/renew_certificate.sh'
    minute: '{{ letsencrypt_cron_renew[0] }}'
    hour: '{{ letsencrypt_cron_renew[1] }}'
    day: '{{ letsencrypt_cron_renew[2] }}'
    weekday: '{{ letsencrypt_cron_renew[3] }}'
    month: '{{ letsencrypt_cron_renew[4] }}'

It can confuse system administrators and lead to mistakes.

wolfsoft avatar Mar 02 '19 02:03 wolfsoft

Yeah I just encountered this - not a big deal, but I did have to come look at code to understand why the change differed from my expectations

jracpatt avatar Oct 19 '21 14:10 jracpatt