From 750260d3bde345686268309d6c1787b93264200b Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Thu, 19 May 2016 13:57:16 +0200 Subject: [PATCH] Use ansible_managed variable in templates Change-Id: I7cb7ee0885c26bc4b9196ca44fe5dc318b9ef739 --- templates/ZZ_aide_exclusions.j2 | 3 ++- templates/chrony.conf.j2 | 2 ++ templates/jail.local.j2 | 4 +++- templates/osas-auditd.j2 | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/templates/ZZ_aide_exclusions.j2 b/templates/ZZ_aide_exclusions.j2 index ad6c4b59..cea081b1 100644 --- a/templates/ZZ_aide_exclusions.j2 +++ b/templates/ZZ_aide_exclusions.j2 @@ -1,4 +1,5 @@ -# This file was deployed by openstack-ansible-security. +# {{ ansible_managed }} +# # These excluded paths prevent AIDE from wandering into directories where it # shouldn't be hashing/monitoring files. diff --git a/templates/chrony.conf.j2 b/templates/chrony.conf.j2 index d8042cc7..deebf032 100644 --- a/templates/chrony.conf.j2 +++ b/templates/chrony.conf.j2 @@ -1,3 +1,5 @@ +# {{ ansible_managed }} +# # This the default chrony.conf file for the Debian chrony package. After # editing this file use the command 'invoke-rc.d chrony restart' to make # your changes take effect. John Hasler 1998-2008 diff --git a/templates/jail.local.j2 b/templates/jail.local.j2 index e9a3f025..b80b9dba 100644 --- a/templates/jail.local.j2 +++ b/templates/jail.local.j2 @@ -1,4 +1,6 @@ -# File added by openstack-ansible-security for RHEL 6 STIG V-38501 +# {{ ansible_managed }} +# +# added for RHEL 6 STIG V-38501 [DEFAULT] # "bantime" is the number of seconds that a host is banned. diff --git a/templates/osas-auditd.j2 b/templates/osas-auditd.j2 index ae2edd96..6a3ded96 100644 --- a/templates/osas-auditd.j2 +++ b/templates/osas-auditd.j2 @@ -1,3 +1,5 @@ +# {{ ansible_managed }} + {% if security_audit_clock_settimeofday | bool %} # RHEL 6 STIG V-38522 # Audits changes to system time via settimeofday