syntax cleanup.
This commit is contained in:
parent
63811343bd
commit
c504df88ec
|
@ -5,7 +5,7 @@
|
|||
- import_tasks: acmetool_rh.yml
|
||||
when: ansible_distribution_file_variety == "RedHat"
|
||||
|
||||
- block:
|
||||
- block:
|
||||
- name: Remove the sudoers config needed to run the old acmetool package hooks
|
||||
file: dest=/etc/sudoers.d/letsencrypt-acme state=absent
|
||||
|
||||
|
@ -56,7 +56,12 @@
|
|||
tags: [ 'letsencrypt', 'letsencrypt_cron', 'letsencrypt_acme_sh', 'letsencrypt_acme_sh_scripts' ]
|
||||
|
||||
- name: Install a daily cron job to renew the certificates when needed. It runs as root
|
||||
cron: name="Letsencrypt certificate renewal" day={{ letsencrypt_acme_cron_day_of_month }} hour={{ letsencrypt_acme_cron_hour }} minute={{ letsencrypt_acme_cron_minute }} job="/usr/local/bin/acme-sh-cron-script > {{ letsencrypt_acme_sh_log_dir }}/acme-cron.log 2>&1"
|
||||
cron:
|
||||
name: "Letsencrypt certificate renewal"
|
||||
day: '{{ letsencrypt_acme_cron_day_of_month }}'
|
||||
hour: '{{ letsencrypt_acme_cron_hour }}'
|
||||
minute: '{{ letsencrypt_acme_cron_minute }}'
|
||||
job: "/usr/local/bin/acme-sh-cron-script > {{ letsencrypt_acme_sh_log_dir }}/acme-cron.log 2>&1"
|
||||
tags: [ 'letsencrypt', 'letsencrypt_cron', 'letsencrypt_acme_sh', 'letsencrypt_acme_sh_scripts' ]
|
||||
|
||||
when: letsencrypt_acme_sh_install | bool
|
||||
|
@ -82,7 +87,13 @@
|
|||
tags: [ 'letsencrypt', 'letsencrypt_account_conf', 'letsencrypt_acme_sh' ]
|
||||
|
||||
- name: Remove the daily cron job that run as acme user.
|
||||
cron: name="Letsencrypt certificate renewal" day={{ letsencrypt_acme_cron_day_of_month }} hour={{ letsencrypt_acme_cron_hour }} minute={{ letsencrypt_acme_cron_minute }} job="/usr/local/bin/acme-sh-cron-script > {{ letsencrypt_acme_sh_log_dir }}/acme-cron.log 2>&1" state=absent
|
||||
cron:
|
||||
name: "Letsencrypt certificate renewal"
|
||||
day: '{{ letsencrypt_acme_cron_day_of_month }}'
|
||||
hour: '{{ letsencrypt_acme_cron_hour }}'
|
||||
minute: '{{ letsencrypt_acme_cron_minute }}'
|
||||
job: "/usr/local/bin/acme-sh-cron-script > {{ letsencrypt_acme_sh_log_dir }}/acme-cron.log 2>&1"
|
||||
state: absent
|
||||
tags: [ 'letsencrypt', 'letsencrypt_cron', 'letsencrypt_acme_sh' ]
|
||||
|
||||
become: True
|
||||
|
|
Loading…
Reference in New Issue