file: added file attributes in state=touched

reviewable/pr18780/r1
René Moser 11 years ago
parent 4a61481498
commit 958abc8a9a

@ -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:

Loading…
Cancel
Save