From 5432c33324aa0d6c46e5a101339095ca7c45fd8b Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 9 Aug 2016 12:39:34 -0400 Subject: [PATCH] added unsafe_writes to blockinfile (#2701) depends on http://github.com/ansible/ansible/issues/17016 --- files/blockinfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/blockinfile.py b/files/blockinfile.py index 38e719a9707..a58e446bf7f 100755 --- a/files/blockinfile.py +++ b/files/blockinfile.py @@ -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):