ansible-personal/roles/caddy/tasks/vhosts.yml

16 lines
286 B
YAML
Raw Normal View History

2022-11-02 20:29:30 +01:00
---
- name: Configure vhosts
ansible.builtin.template:
src: etc/caddy/conf.d/vhost.j2
dest: /etc/caddy/conf.d/{{ item.domain_name }}
mode: 0644
owner: root
group: root
loop: "{{ nginx_vhosts }}"
notify:
- reload caddy
tags: caddy
# vim: set ts=2 sw=2: