infrastructure/ansible/roles/gateway/tasks/nginx.yml
Jake Howard 808e72553b
Some checks failed
/ ansible (push) Has been cancelled
/ terraform (push) Has been cancelled
Add the basics of some edge caching
2024-02-21 21:42:16 +00:00

22 lines
436 B
YAML

- name: Nginx config
template:
src: files/nginx.conf
dest: /etc/nginx/stream.d/gateway.conf
mode: "0644"
become: true
register: nginx_config
- name: Install CDN config
template:
src: files/nginx-cdn.conf
dest: /etc/nginx/http.d/cdn.conf
mode: "0644"
become: true
register: nginx_config
- name: Reload Nginx
service:
name: nginx
state: reloaded
become: true
when: nginx_config.changed