Commit 3770813c by Norman J. Harman Jr

lineinfile supports symlinks.

parent 2c79a036
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment