mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-27 12:25:04 +01:00
13 lines
497 B
YAML
13 lines
497 B
YAML
---
|
|
- 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: 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
|
|
loop: "{{domain_mappings}}"
|
|
notify: restart nginx
|