Files
ansible_uni_deploy/roles/nginx-proxy/tasks/create_vhosts.yml

11 lines
274 B
YAML

---
- name: Create Nginx vhost configurations
ansible.builtin.template:
src: nginx-vhost.conf.j2
dest: "/etc/nginx/sites-enabled/{{ item.key }}.conf"
owner: root
group: root
mode: '0644'
loop: "{{ servernames | dict2items }}"
notify: Restart Nginx