diff --git a/lib/ansible/plugins/cache/jsonfile.py b/lib/ansible/plugins/cache/jsonfile.py index 1bf0ea10b6e..1ee183e0946 100644 --- a/lib/ansible/plugins/cache/jsonfile.py +++ b/lib/ansible/plugins/cache/jsonfile.py @@ -99,7 +99,7 @@ class CacheModule(BaseCacheModule): display.warning("error while trying to write to %s : %s" % (cachefile, to_bytes(e))) pass else: - f.write(jsonify(value)) + f.write(jsonify(value, format=True)) finally: try: f.close()