先保證centos7中有安裝ansible,沒有則按照
yum install epel-release -y
yum install ansible –y
下載下傳tidb-ansible指定版本
從
https://github.com/pingcap/tidb-ansible/releases中下載下傳tidb-ansible-3.0.2.zip
解壓到/home/qtj/tikv/中
下載下傳
cd tidb-ansible-3.0.2
ansible-playbook local_prepare.yml
下面是截取的一些提示片段
TASK [local : unarchive tidb binary] *
changed: [localhost] => (item={u'url': u'
http://download.pingcap.org/tidb-v3.0.2-linux-amd64.tar.gz', u'version': u'v3.0.2', u'name': u'tidb'})
...
PLAY RECAP *
localhost : ok=32 changed=24 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0
Congrats! All goes well. :-)
下載下傳好的壓縮包都在tidb-ansible-3.0.2/downloads目錄下