From fe3caad174f22426e083a209b92265fe9e213634 Mon Sep 17 00:00:00 2001 From: Daniel Mills Date: Thu, 3 Jan 2019 14:13:56 -0800 Subject: [PATCH] Add ansible_managed to templates (#81) * Add ansible_managed to templates * Put ansible managed in the right place * Remove extraneous empty line --- templates/http/default.conf.j2 | 2 ++ templates/nginx.conf.j2 | 2 ++ templates/stream/stream.conf.j2 | 2 ++ templates/www/index.html.j2 | 2 ++ 4 files changed, 8 insertions(+) diff --git a/templates/http/default.conf.j2 b/templates/http/default.conf.j2 index db2a9ff..c107cab 100644 --- a/templates/http/default.conf.j2 +++ b/templates/http/default.conf.j2 @@ -1,3 +1,5 @@ +# {{ ansible_managed }} + {% if item.value.upstreams is defined %} {% for upstream in item.value.upstreams %} upstream {{ item.value.upstreams[upstream].name }} { diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index 88ba181..4d55796 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -1,3 +1,5 @@ +# {{ ansible_managed }} + user {{ nginx_main_template.user }}; worker_processes {{ nginx_main_template.worker_processes }}; diff --git a/templates/stream/stream.conf.j2 b/templates/stream/stream.conf.j2 index e462f29..cb16569 100644 --- a/templates/stream/stream.conf.j2 +++ b/templates/stream/stream.conf.j2 @@ -1,3 +1,5 @@ +# {{ ansible_managed }} + server { listen {{ nginx_stream_template_listen }}; } diff --git a/templates/www/index.html.j2 b/templates/www/index.html.j2 index ae5dcf6..1872576 100644 --- a/templates/www/index.html.j2 +++ b/templates/www/index.html.j2 @@ -1,3 +1,5 @@ + +