diff --git a/docs/00-集群规划和基础参数设定.md b/docs/00-集群规划和基础参数设定.md index b3b9bc6..39cad5d 100644 --- a/docs/00-集群规划和基础参数设定.md +++ b/docs/00-集群规划和基础参数设定.md @@ -98,6 +98,30 @@ pip install --no-cache-dir ansible -i http://mirrors.aliyun.com/pypi/simple/ --t ssh-keygen -t rsa -b 2048 回车 回车 回车 ssh-copy-id $IPs #$IPs为所有节点地址,按照提示输入yes 和root密码 ``` ++ 验证ansible安装 + +``` bash +ansible all -m ping +``` +如果配置正确可以看到类似输出: + +``` text +192.168.1.42 | SUCCESS => { + "changed": false, + "failed": false, + "ping": "pong" +} +192.168.1.43 | SUCCESS => { + "changed": false, + "failed": false, + "ping": "pong" +} +192.168.1.44 | SUCCESS => { + "changed": false, + "failed": false, + "ping": "pong" +} +``` ### 5.在deploy节点编排k8s安装 ``` bash git clone https://github.com/gjmzj/kubeasz.git