From bb4d010f44d520ecb8c799109a8444ecfa9e936b Mon Sep 17 00:00:00 2001 From: Alessandro Fael Garcia Date: Tue, 13 Aug 2024 06:55:49 -0800 Subject: [PATCH] chore: Add `ansible_managed` comment to templated configs (#763) --- templates/logrotate/nginx.j2 | 2 ++ templates/selinux/nginx-plus-module.te.j2 | 2 ++ templates/services/nginx.service.override.conf.j2 | 2 ++ 3 files changed, 6 insertions(+) diff --git a/templates/logrotate/nginx.j2 b/templates/logrotate/nginx.j2 index e6d6e65c5..9c1352fb7 100644 --- a/templates/logrotate/nginx.j2 +++ b/templates/logrotate/nginx.j2 @@ -1,3 +1,5 @@ +{{ ansible_managed | comment }} + {% if nginx_logrotate_conf['paths'] is defined and nginx_logrotate_conf['paths'] is not mapping %} {% for path in nginx_logrotate_conf['paths'] if nginx_logrotate_conf['paths'] is not string %} {{ path }} diff --git a/templates/selinux/nginx-plus-module.te.j2 b/templates/selinux/nginx-plus-module.te.j2 index a997c3d78..bc0160f34 100644 --- a/templates/selinux/nginx-plus-module.te.j2 +++ b/templates/selinux/nginx-plus-module.te.j2 @@ -1,3 +1,5 @@ +{{ ansible_managed | comment }} + module nginx-plus-module 1.0; require { diff --git a/templates/services/nginx.service.override.conf.j2 b/templates/services/nginx.service.override.conf.j2 index 83093e00d..829ccf8f5 100644 --- a/templates/services/nginx.service.override.conf.j2 +++ b/templates/services/nginx.service.override.conf.j2 @@ -1,3 +1,5 @@ +{{ ansible_managed | comment }} + [Service] {% if nginx_service_timeoutstartsec is defined %} TimeoutStartSec={{ nginx_service_timeoutstartsec }}