library/roles/letsencrypt-acmetool-client/tasks/main.yml: Change the cron job task. Now if a user is specified, a file is required too.

This commit is contained in:
Andrea Dell'Amico 2016-10-18 19:31:19 +02:00
parent 4d918e0bd0
commit bbab9edbeb
1 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,9 @@
tags: letsencrypt tags: letsencrypt
- name: Install a daily cron job to renew the certificates when needed - name: Install a daily cron job to renew the certificates when needed
cron: name="Letsencrypt certificate renewal" special_time=daily job="/usr/local/bin/acme-cert-request > {{ letsencrypt_acme_log_dir }}/acme-cron.log 2>&1" user={{ letsencrypt_acme_user }} become: True
become_user: '{{ letsencrypt_acme_user }}'
cron: name="Letsencrypt certificate renewal" special_time=daily job="/usr/local/bin/acme-cert-request > {{ letsencrypt_acme_log_dir }}/acme-cron.log 2>&1"
when: letsencrypt_acme_install when: letsencrypt_acme_install
tags: letsencrypt tags: letsencrypt