computer-playbook/roles/nginx-domain-redirect/tasks/main.yml

17 lines
460 B
YAML
Raw Normal View History

---
- name: "include task receive certbot certificate"
include_tasks: recieve-certbot-certificate.yml
vars:
2024-01-08 19:35:01 +01:00
domain: "{{item.source}}"
loop: "{{domain_mappings}}"
- name: configure nginx redirect configurations
vars:
domain: "{{item.source}}"
target_domain: "{{item.target}}"
2024-01-08 19:35:01 +01:00
template:
src: redirect.domain.nginx.conf.j2
dest: "{{nginx_servers_directory}}{{ domain }}.conf"
loop: "{{domain_mappings}}"
notify: restart nginx