infrastructure/ansible/roles/gateway/tasks/nginx.yml
Jake Howard d5a7a61171
All checks were successful
/ terraform (push) Successful in 38s
/ ansible (push) Successful in 1m30s
Remove unnecessary use of become from some roles
This should make execution much faster
2024-09-09 17:09:03 +01:00

19 lines
391 B
YAML

- name: Nginx config
template:
src: files/nginx.conf
dest: /etc/nginx/stream.d/gateway.conf
mode: "0644"
register: nginx_config
- 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