added unsafe_writes to blockinfile (#2701)
depends on http://github.com/ansible/ansible/issues/17016
This commit is contained in:
parent
35aa1a5a81
commit
5432c33324
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ def write_changes(module, contents, 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, dest, unsafe_writes=module.params['unsafe_writes'])
|
||||
|
||||
|
||||
def check_file_attrs(module, changed, message):
|
||||
|
|
Loading…
Reference in a new issue