start.yml -l ip执行失败报错

版本 :5.7.10-TiDB-v2.1.0-rc.3-98-gd65ce86

问题:$ ansible-playbook start.yml -l 10.11.142.27

报错内容:
TASK [set_fact] *****************************************************************************************************************************
fatal: [10.11.142.27]: FAILED! => {“msg”: "The conditional check ‘((existing_api_keys[‘json’] | selectattr("name", "equalto", "grafana_apikey")) | list) | length == 1’ failed. The error was: no test named ‘equalto’

The error appears to have been in ‘/home/tidb/tidbdeploy/tidb-ansible/common_tasks/create_grafana_api_keys.yml’: line 24, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

\

  • set_fact:
    ^ here
    "}
    to retry, use: --limit @/home/tidb/tidbdeploy/tidb-ansible/retry_files/start.retry

PLAY RECAP *****************************************************************************************************************************
10.11.142.27 : ok=23 changed=0 unreachable=0 failed=1

ERROR MESSAGE SUMMARY *****************************************************************************************************************************
[10.11.142.27]: Ansible FAILED! => playbook: start.yml; TASK: set_fact; message: {“msg”: "The conditional check ‘((existing_api_keys[‘json’] | selectattr("name", "equalto", "grafana_apikey")) | list) | length == 1’ failed. The error was: no test named ‘equalto’

The error appears to have been in ‘/home/tidb/tidbdeploy/tidb-ansible/common_tasks/create_grafana_api_keys.yml’: line 24, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

\

  • set_fact:
    ^ here
    "}

Ask for help:
Contact us: support@pingcap.com
It seems that you encounter some problems. You can send an email to the above email address, attached with the tidb-ansible/inventory.ini and tidb-ansible/log/ansible.log files and the error message, or new issue on https://github.com/pingcap/tidb-ansible/issues. We’ll try our best to help you deploy a TiDB cluster. Thanks. :slight_smile:

请参考 [FAQ] no test named equalto

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。