From 958abc8a9a78373fb4969c5b0806562eec60cf37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Moser?= Date: Sun, 22 Sep 2013 12:54:24 +0200 Subject: [PATCH] file: added file attributes in state=touched --- files/file | 1 + 1 file changed, 1 insertion(+) diff --git a/files/file b/files/file index 3bda637f9a7..c96c081ae84 100644 --- a/files/file +++ b/files/file @@ -325,6 +325,7 @@ def main(): open(path, 'w').close() except OSError, e: module.fail_json(path=path, msg='Error while touching non-existing target: %s' % str(e)) + module.set_file_attributes_if_different(file_args, True) module.exit_json(dest=path, changed=True) else: