From 659e50755e235457c3c3210bbd62175f0e208af6 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 15 Nov 2019 16:19:37 +0100 Subject: [PATCH] Add a specific tag to the task that installs the acme.sh account file. --- library/roles/letsencrypt-acme-sh-client/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/roles/letsencrypt-acme-sh-client/tasks/main.yml b/library/roles/letsencrypt-acme-sh-client/tasks/main.yml index be509a3..8ee84a9 100644 --- a/library/roles/letsencrypt-acme-sh-client/tasks/main.yml +++ b/library/roles/letsencrypt-acme-sh-client/tasks/main.yml @@ -71,8 +71,9 @@ args: creates: '{{ letsencrypt_acme_sh_user_home }}/bin/acme.sh' - - name: Create the letsencrypt acme.sh configuration + - name: Create the letsencrypt acme.sh account configuration template: src=account.conf.j2 dest={{ letsencrypt_acme_sh_base_data_dir }}/data/account.conf mode=0640 + 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