Merge pull request #7856 from njharman/devel

Lineinfile now supports symlinks.
This commit is contained in:
James Cammarata 2014-06-20 11:14:43 -05:00
commit 6d3f56f7fe

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