Created
December 17, 2015 08:26
-
-
Save alex-harvey-z3q/a7cf62628466d5ca1ca4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alexs-mbp:playbooks-internal-d291702 alexharvey$ cat roles/nginx/templates//stream.conf.j2 | |
#{{ ansible_managed }} | |
{% for v in nginx_streams[item] %} | |
{% if v != "" %} | |
{{ v.replace(";",";\n ").replace(" {"," {\n ").replace(" }"," \n }\n") }} | |
{% if v.find('{') == -1%}; | |
{% endif %} | |
{% endif %} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment