infrastructure/ansible/roles/gateway/tasks/nginx.yml

20 lines
391 B
YAML
Raw Normal View History

- name: Nginx config
template:
src: files/nginx.conf
dest: /etc/nginx/stream.d/gateway.conf
mode: "0644"
register: nginx_config
2024-02-21 21:42:16 +00:00
- name: Install CDN config
template:
src: files/nginx-cdn.conf
dest: /etc/nginx/http.d/cdn.conf
mode: "0644"
register: nginx_config
- name: Reload Nginx
service:
name: nginx
state: reloaded
when: nginx_config.changed