diff --git a/lib/ansible/modules/system/java_keystore.py b/lib/ansible/modules/system/java_keystore.py index a8b90ba5bda..abd15ec00b3 100644 --- a/lib/ansible/modules/system/java_keystore.py +++ b/lib/ansible/modules/system/java_keystore.py @@ -163,7 +163,7 @@ def run_commands(module, cmd, check_rc=True): def create_file(path, content): - with open(path, 'wb') as f: + with open(path, 'w') as f: f.write(content) return path