Implemented test-run for certbot due to letsencrypt restrictions

This commit is contained in:
2024-01-08 11:20:44 +01:00
parent db38b72373
commit bf421835c3
4 changed files with 18 additions and 11 deletions

View File

@@ -2,12 +2,14 @@
- name: "include docker-compose-common.yml"
include_tasks: docker-compose-common.yml
- name: receive {{ mail_interface_domain }} certificate
command: certbot certonly --agree-tos --email {{ administrator_email }} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{ mail_interface_domain }}
- name: receive {{ domain }} certificate
command: certbot certonly --agree-tos --email {{ administrator_email }} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{ domain }}
- name: "include tasks to receive attendize certbot certificate"
include_tasks: recieve-certbot-certificate.yml
vars:
domain: "{{ item }}"
loop:
- "{{ mail_interface_domain }}"
- "{{ domain }}"
- name: configure {{domain}}.conf
template:
src: roles/nginx-docker-reverse-proxy/templates/domain.conf.j2

View File

@@ -1,7 +1,8 @@
---
- name: recieve redirect source certificates
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{item.source}}
loop: "{{domain_mappings}}"
- name: "include task receive certbot certificate"
include_tasks: recieve-certbot-certificate.yml
vars:
domain: "{{ domain }}"
- name: configure nginx redirect configurations
vars: