From f9d79461026ad0a714f8a2bf208988387cfb8ab1 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 27 Aug 2019 08:33:52 +0200 Subject: [PATCH] fix ansible_managed handling --- templates/etc/cron.d/x-yum.j2 | 3 +-- templates/etc/yum/yum-cron.conf.j2 | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/etc/cron.d/x-yum.j2 b/templates/etc/cron.d/x-yum.j2 index afef152..4a1b92f 100644 --- a/templates/etc/cron.d/x-yum.j2 +++ b/templates/etc/cron.d/x-yum.j2 @@ -1,6 +1,5 @@ #!/bin/bash -# {{ ansible_managed }} - +{{ ansible_managed | comment }} # Only run if this flag is set. The flag is created by the yum-cron init # script when the service is started -- this allows one to use chkconfig and # the standard "service stop|start" commands to enable or disable yum-cron. diff --git a/templates/etc/yum/yum-cron.conf.j2 b/templates/etc/yum/yum-cron.conf.j2 index b427c5b..40be555 100644 --- a/templates/etc/yum/yum-cron.conf.j2 +++ b/templates/etc/yum/yum-cron.conf.j2 @@ -1,5 +1,4 @@ -# {{ ansible_managed }} - +{{ ansible_managed | ansible_managed }} [commands] # What kind of update to use: # default = yum upgrade