Merge pull request #107 from etcet/multiline-ansible-managed

Support multi-line ansible_managed messages
This commit is contained in:
Grzegorz Dzien 2019-02-22 17:31:23 +00:00 committed by GitHub
commit 6fa36689e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# {{ ansible_managed }} {{ ansible_managed | comment }}
{% if item.value.upstreams is defined %} {% if item.value.upstreams is defined %}
{% for upstream in item.value.upstreams %} {% for upstream in item.value.upstreams %}

View File

@ -1,4 +1,4 @@
# {{ ansible_managed }} {{ ansible_managed | comment }}
user {{ nginx_main_template.user }}; user {{ nginx_main_template.user }};
worker_processes {{ nginx_main_template.worker_processes }}; worker_processes {{ nginx_main_template.worker_processes }};

View File

@ -1,4 +1,4 @@
# {{ ansible_managed }} {{ ansible_managed | comment }}
{% if item.value.upstreams is defined %} {% if item.value.upstreams is defined %}
{% for upstream in item.value.upstreams %} {% for upstream in item.value.upstreams %}
upstream {{ item.value.upstreams[upstream].name }} { upstream {{ item.value.upstreams[upstream].name }} {