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