You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
ansible-role-nginx/tasks/stream.yml

21 lines
597 B

---
- name: Ensure nginx_stream_path exists.
file:
path: "{{ nginx_stream_path }}"
state: directory
notify: reload nginx
- name: Add managed stream config file (if any streams are configured).
template:
src: streams.j2
dest: "{{ nginx_stream_path }}/{{ nginx_streams_filename }}"
mode: 0644
when: nginx_streams|length > 0
notify: reload nginx
- name: Remove managed stream config file (if no streams are configured).
file:
path: "{{ nginx_stream_path }}/{{ nginx_streams_filename }}"
state: absent
when: nginx_streams|length == 0
notify: reload nginx