Solved certbot bug

This commit is contained in:
Kevin Veen-Birkenbach 2024-01-08 19:35:01 +01:00
parent fe0ee86319
commit f180c14e06
2 changed files with 6 additions and 3 deletions

View File

@ -2,12 +2,15 @@
- name: "include task receive certbot certificate"
include_tasks: recieve-certbot-certificate.yml
vars:
domain: "{{ domain }}"
domain: "{{item.source}}"
loop: "{{domain_mappings}}"
- name: configure nginx redirect configurations
vars:
domain: "{{item.source}}"
target_domain: "{{item.target}}"
template: src=redirect.domain.nginx.conf.j2 dest={{nginx_servers_directory}}{{ domain }}.conf
template:
src: redirect.domain.nginx.conf.j2
dest: "{{nginx_servers_directory}}{{ domain }}.conf"
loop: "{{domain_mappings}}"
notify: restart nginx

View File

@ -1,4 +1,4 @@
- name: recieve certbot certificate for {{ domain }}
- name: "recieve certbot certificate for {{ domain }}"
command: >-
certbot certonly --agree-tos --email {{ administrator_email }}
--non-interactive --webroot -w /var/lib/letsencrypt/ -d {{ domain }}