2021-08-22 22:34:27 +01:00
|
|
|
- name: Nginx config
|
|
|
|
template:
|
|
|
|
src: files/nginx.conf
|
2023-12-16 17:47:04 +00:00
|
|
|
dest: /etc/nginx/stream.d/gateway.conf
|
2021-08-22 22:34:27 +01:00
|
|
|
mode: "0644"
|
|
|
|
become: true
|
|
|
|
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"
|
|
|
|
become: true
|
|
|
|
register: nginx_config
|
|
|
|
|
2023-12-16 17:47:04 +00:00
|
|
|
- name: Reload Nginx
|
2021-08-22 22:34:27 +01:00
|
|
|
service:
|
|
|
|
name: nginx
|
2023-12-16 17:47:04 +00:00
|
|
|
state: reloaded
|
2021-08-22 22:34:27 +01:00
|
|
|
become: true
|
|
|
|
when: nginx_config.changed
|