mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #7856 from njharman/devel
Lineinfile now supports symlinks.
This commit is contained in:
commit
bba4f58240
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in a new issue