summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
Diffstat (limited to 'library')
-rw-r--r--library/files/file1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/files/file b/library/files/file
index 3bda637f9a..c96c081ae8 100644
--- a/library/files/file
+++ b/library/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: