mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-02-22 20:39:40 +01:00
22 lines
554 B
YAML
22 lines
554 B
YAML
---
|
|
- name: "include task receive certbot certificate"
|
|
include_role:
|
|
name: nginx-https-get-cert
|
|
vars:
|
|
domain: "{{item.source}}"
|
|
loop: "{{domain_mappings}}"
|
|
|
|
- name: The domains for which a www. redirect will be implemented
|
|
debug:
|
|
var: domain_mappings
|
|
when: enable_debug | bool
|
|
|
|
- name: configure nginx redirect configurations
|
|
vars:
|
|
item: "{{item}}"
|
|
template:
|
|
src: redirect.domain.nginx.conf.j2
|
|
dest: "{{nginx.directories.http.servers}}{{item.source}}.conf"
|
|
loop: "{{domain_mappings}}"
|
|
notify: restart nginx
|