diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-08-09 14:38:23 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-08-20 22:12:03 +0200 |
commit | bc98352d3e331003db625be96139b3c1f95f63b2 (patch) | |
tree | 6f05ce12309fb46aaa9c9eee692573b49b692e4d /roles/x509/acmetool/cert/finalize | |
parent | prepare test setups for new acme/cert roles (diff) |
nginx/vhost: major change in certifcate/tls handling (WIP)
Diffstat (limited to 'roles/x509/acmetool/cert/finalize')
-rw-r--r-- | roles/x509/acmetool/cert/finalize/defaults/main.yml | 3 | ||||
-rw-r--r-- | roles/x509/acmetool/cert/finalize/tasks/main.yml | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/roles/x509/acmetool/cert/finalize/defaults/main.yml b/roles/x509/acmetool/cert/finalize/defaults/main.yml index ab0afaa3..b9a80136 100644 --- a/roles/x509/acmetool/cert/finalize/defaults/main.yml +++ b/roles/x509/acmetool/cert/finalize/defaults/main.yml @@ -1,2 +1,5 @@ --- +acmetool_cert_hostnames: "{{ x509_certificate_hostnames }}" +acmetool_cert_name: "{{ x509_certificate_name | default(acmetool_cert_hostnames[0]) }}" + acmetool_reconcile_disabled: false diff --git a/roles/x509/acmetool/cert/finalize/tasks/main.yml b/roles/x509/acmetool/cert/finalize/tasks/main.yml index 91bf5157..abb2d4cb 100644 --- a/roles/x509/acmetool/cert/finalize/tasks/main.yml +++ b/roles/x509/acmetool/cert/finalize/tasks/main.yml @@ -6,5 +6,5 @@ names: "{{ acmetool_cert_hostnames }}" copy: content: "{{ acmetool_cert_config | default({}) | combine(acmetool_cert_satisfy) | to_nice_yaml }}" - dest: "/var/lib/acme/desired/{{ acmetool_cert_name | default(acmetool_cert_hostnames[0]) }}" + dest: "/var/lib/acme/desired/{{ acmetool_cert_name }}" notify: reconcile acmetool |