Skip to content
Snippets Groups Projects
Commit 14759db6 authored by Emmanuel Cohen's avatar Emmanuel Cohen
Browse files

ansible mediaserver: only use realip when variable is defined, refs #33676

parent 6d2184a9
No related branches found
No related tags found
No related merge requests found
...@@ -179,6 +179,7 @@ ...@@ -179,6 +179,7 @@
notify: restart nginx notify: restart nginx
when: when:
- groups['mediaserver'] | length > 1 - groups['mediaserver'] | length > 1
- real_ip_from
template: template:
src: realip.conf.j2 src: realip.conf.j2
dest: /etc/nginx/conf.d/realip.conf dest: /etc/nginx/conf.d/realip.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment