config.conf.j2 271 B

123456789
  1. #{{ ansible_managed }}
  2. {% for v in nginx_configs[item] %}
  3. {% if v.find('\n') != -1 %}
  4. {{v}}
  5. {% else %}
  6. {% if v != "" %}{{ v.replace(";",";\n ").replace(" {"," {\n ").replace(" }"," \n}\n") }}{% if v.find('{') == -1%};
  7. {% endif %}{% endif %}{% endif %}
  8. {% endfor %}