From 56befa946850f4386348e571c44e7223393958d6 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 15 Feb 2014 14:13:42 -0500 Subject: [PATCH] Document ansible_managed changing the template. --- docsite/rst/intro_configuration.rst | 2 ++ library/files/template | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docsite/rst/intro_configuration.rst b/docsite/rst/intro_configuration.rst index bf12f9c9963..a2c80188d01 100644 --- a/docsite/rst/intro_configuration.rst +++ b/docsite/rst/intro_configuration.rst @@ -90,6 +90,8 @@ The default configuration shows who modified a file and when:: This is useful to tell users that a file has been placed by Ansible and manual changes are likely to be overwritten. +Note that if using this feature, and there is a date in the string, the template will be reported changed each time as the date is updated. + .. _ask_pass: ask_pass diff --git a/library/files/template b/library/files/template index 6fd1b9414c4..29fa905207f 100644 --- a/library/files/template +++ b/library/files/template @@ -16,7 +16,9 @@ description: template file and the owner uid, C(template_host) contains the node name of the template's machine, C(template_uid) the owner, C(template_path) the absolute path of the template, C(template_fullpath) is the absolute path of the - template, and C(template_run_date) is the date that the template was rendered." + template, and C(template_run_date) is the date that the template was rendered. Note that including + a string that uses a date in the template will resort in the template being marked 'changed' + each time." options: src: description: