diff options
author | 2024-06-02 13:41:14 +0100 | |
---|---|---|
committer | 2024-06-02 13:45:15 +0100 | |
commit | 0f69bcaf7e0ccde8c141409982135e58536cdef4 (patch) | |
tree | 90d4b0e9c1d85733c08bf2b1e400af7dce0b7bc4 | |
parent | Deploy host-specific configs in NGINX (diff) |
Issue certificate for hostname and sub-services, not both in one
-rw-r--r-- | ansible/roles/certbot/tasks/main.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ansible/roles/certbot/tasks/main.yml b/ansible/roles/certbot/tasks/main.yml index fb03baa..8eba4ea 100644 --- a/ansible/roles/certbot/tasks/main.yml +++ b/ansible/roles/certbot/tasks/main.yml @@ -53,10 +53,11 @@ --email {{ certbot_email }} --dns-cloudflare --dns-cloudflare-credentials /etc/letsencrypt/cloudflare.ini - -d {{ item }} -d {{inventory_hostname}}.box.pydis.wtf + -d {{ item }} args: creates: "/etc/letsencrypt/live/{{ item }}/fullchain.pem" with_items: + - "{{ inventory_hostname }}.box.pydis.wtf" - "{{ certbot_domains[inventory_hostname] }}" tags: - role::certbot |