为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
- 【TiDB 版本】: tidb=v4.0.0-beta.2;ansible=2.7.11
- 【问题描述】: 执行 ansible-playbook local_prepare.yml 错误信息: [bdp@tidb4_zk tidb-ansible-4.0.0-beta.2]$ ansible-playbook local_prepare.yml
PLAY [do local preparation] *******************************************************************************************************************
TASK [local : Stop if ansible version is too low, make sure that the Ansible version is Ansible 2.4.2 or later, otherwise a compatibility issue occurs.] *** ok: [localhost] => changed=false msg: All assertions passed
TASK [local : create downloads and resources directories] ************************************************************************************* ok: [localhost] => (item=/home/bdp/tidb-ansible-4.0.0-beta.2/downloads) ok: [localhost] => (item=/home/bdp/tidb-ansible-4.0.0-beta.2/resources) ok: [localhost] => (item=/home/bdp/tidb-ansible-4.0.0-beta.2/resources/bin)
TASK [local : create cert directory] **********************************************************************************************************
TASK [local : create packages.yml] ************************************************************************************************************ fatal: [localhost]: FAILED! => changed=false msg: ‘AnsibleUndefinedVariable: ‘‘cpu_architecture’’ is undefined’ to retry, use: --limit @/home/bdp/tidb-ansible-4.0.0-beta.2/retry_files/local_prepare.retry
PLAY RECAP ************************************************************************************************************************************ localhost : ok=2 changed=0 unreachable=0 failed=1
ERROR MESSAGE SUMMARY ************************************************************************************************************************* [localhost]: Ansible Failed! ==> changed=false msg: ‘AnsibleUndefinedVariable: ‘‘cpu_architecture’’ is undefined’
若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。