1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

file: added file attributes in state=touched

This commit is contained in:
René Moser 2013-09-22 12:54:24 +02:00
parent 573ea5bdce
commit 3a0fd84115

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