mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 20:51:07 +01:00
17 lines
460 B
YAML
17 lines
460 B
YAML
---
|
|
- name: "include task receive certbot certificate"
|
|
include_tasks: recieve-certbot-certificate.yml
|
|
vars:
|
|
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"
|
|
loop: "{{domain_mappings}}"
|
|
notify: restart nginx
|