infrastructure/ansible/roles/gateway/tasks/nginx.yml
Jake Howard 92052a3d0a
Unify nginx configuration
This creates a simple base configuration skeleton, that other configuration can be easily loaded into.
2023-12-16 17:47:04 +00:00

14 lines
272 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: Reload Nginx
service:
name: nginx
state: reloaded
become: true
when: nginx_config.changed