From fbd1d7a2acd6bd9a4553bd4c4dfb85b824378a28 Mon Sep 17 00:00:00 2001 From: David Kilias Date: Mon, 15 Feb 2021 18:06:35 +0100 Subject: [PATCH] =?UTF-8?q?jetzt=20gibts=20ein=20flag=20f=C3=BCr=20forced?= =?UTF-8?q?=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/dehydrated-domains/README.md | 1 + roles/dehydrated/handlers/main.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/dehydrated-domains/README.md b/roles/dehydrated-domains/README.md index 44f897d..6f2f544 100644 --- a/roles/dehydrated-domains/README.md +++ b/roles/dehydrated-domains/README.md @@ -6,6 +6,7 @@ Ansible role to configure domains for use with dehydrated ```yaml vars: + dehydrated_force_update: True dehydrated_domains: - name: example.com alternate_names: diff --git a/roles/dehydrated/handlers/main.yml b/roles/dehydrated/handlers/main.yml index 4498b79..9552e98 100644 --- a/roles/dehydrated/handlers/main.yml +++ b/roles/dehydrated/handlers/main.yml @@ -3,4 +3,5 @@ command: "{{ dehydrated_binary }} --register --accept-terms" - name: dehydrated cron - command: "{{ dehydrated_binary }} --cron" \ No newline at end of file + command: "{{ dehydrated_binary }} --cron" + when: dehydrated_force_update|default(False)|bool \ No newline at end of file