lineinfile supports symlinks.

This commit is contained in:
Norman J. Harman Jr 2014-06-19 17:38:34 -05:00
parent ce09a6dd47
commit 0f4aa34da2

View file

@ -163,7 +163,7 @@ def write_changes(module,lines,dest):
module.fail_json(msg='failed to validate: '
'rc:%s error:%s' % (rc,err))
if valid:
module.atomic_move(tmpfile, dest)
module.atomic_move(tmpfile, os.path.realpath(dest))
def check_file_attrs(module, changed, message):