Jake Howard
92052a3d0a
This creates a simple base configuration skeleton, that other configuration can be easily loaded into.
14 lines
272 B
YAML
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
|