feat: Add nginx-proxy role for nginx and certbot
This commit is contained in:
10
roles/nginx-proxy/tasks/create_vhosts.yml
Normal file
10
roles/nginx-proxy/tasks/create_vhosts.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: Create Nginx vhost configurations
|
||||
ansible.builtin.template:
|
||||
src: nginx-vhost.conf.j2
|
||||
dest: "/etc/nginx/conf.d/{{ item.key }}.conf"
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
loop: "{{ servernames | dict2items }}"
|
||||
notify: Restart Nginx
|
||||
Reference in New Issue
Block a user