从2.0.6升级到3.1.2报错

从2.0.6升级到3.1.2,使用excessive_rolling_update.yml来升级,错误日志提示
Ansible FAILED! => playbook: excessive_rolling_update.yml; TASK: set_fact; message: {“msg”: “The task includes an option with an undefined variable. The error was: ‘dict object’ has no attribute ‘json’\ \ The error appe
ars to have been in ‘/home/tidb/tidb-ansible/excessive_rolling_update.yml’: line 134, column 7, but may\ be elsewhere in the file depending on the exact syntax problem.\ \ The offending line appears to be:\ \ \ - set_fact:\ ^
here\ ”}
请问如何解决

目前 TiDB 不支持跨多个大版本直接升级,可以先升级到 3.0 版本,之后升级到 3.1 或者 4.0 版本

https://docs.pingcap.com/zh/tidb/v3.0/upgrade-tidb-using-ansible

我更改升级的版本,3.0.16、3.0.1、2.1.19三个版本都测试了,都报同样的错
Ansible FAILED! => playbook: excessive_rolling_update.yml; TASK: set_fact; message: {“msg”: “The task includes an option with an undefined variable. The error was: ‘dict object’ has no attribute ‘json’\ \ The error appears to have been in ‘/home/tidb/tidb-ansible/common_tasks/get_pd_name.yml’: line 11, column 3, but may\ be elsewhere in the file depending on the exact syntax problem.\ \ The offending line appears to be:\ \ \ - set_fact:\ ^ here\ ”}
是因为我先操作升级了3.1.2的原因吗?如果是因为先升级了3.1.2的原因我该如何清理升级的信息呢?

麻烦您这边确认下 python 版本,以及 requirements 中的版本
https://github.com/pingcap/tidb-ansible/blob/v2.0.10/requirements.txt