- Mastering Ceph
- Nick Fisk
- 108字
- 2021-07-09 19:55:15
Testing
To test that Ansible is working correctly and that we can successfully connect and run commands remotely, let's use the Ansible ping command to check one of our hosts. Note that this is not like a network ping, Ansible ping confirms that it can communicate via SSH and execute commands remotely:
$ ansible mon1 -m ping
The preceding command gives the following output:

Excellent, that worked, now let's run a simple command remotely to demonstrate the power of Ansible. The following command will retrieve the current running kernel version on the specified remote node:
$ ansible mon1 -a 'uname -r'
This is the desired result:

推薦閱讀
- 3D Printing with RepRap Cookbook
- CSS全程指南
- Windows XP中文版應用基礎
- ROS機器人編程與SLAM算法解析指南
- Hands-On Linux for Architects
- 21天學通Visual Basic
- Ruby on Rails敏捷開發最佳實踐
- Kubernetes for Serverless Applications
- 零起點學西門子S7-200 PLC
- 空間機器人智能感知技術
- C#編程兵書
- Java Deep Learning Projects
- Building Analytics Teams
- 數據結構與算法(C++語言版)
- Hands-On Artificial Intelligence for Beginners