summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorRené Moser <mail@renemoser.net>2013-09-22 12:54:24 +0200
committerRené Moser <mail@renemoser.net>2013-09-22 12:54:24 +0200
commit3a0fd841154fdb5834a32780b0dc0f9bb5149929 (patch)
treea96be2eaf63132085bf59ff487139c672f4a14db /library
parent573ea5bdce66370333002b6be078108a47b4a01a (diff)
downloadansible-3a0fd841154fdb5834a32780b0dc0f9bb5149929.tar.gz
file: added file attributes in state=touched
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: