- 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:

推薦閱讀
- 大數(shù)據(jù)戰(zhàn)爭(zhēng):人工智能時(shí)代不能不說(shuō)的事
- Splunk 7 Essentials(Third Edition)
- 高性能混合信號(hào)ARM:ADuC7xxx原理與應(yīng)用開(kāi)發(fā)
- 西門子S7-200 SMART PLC從入門到精通
- Apache Hive Essentials
- 機(jī)器自動(dòng)化控制器原理與應(yīng)用
- 城市道路交通主動(dòng)控制技術(shù)
- 21天學(xué)通C#
- 工業(yè)機(jī)器人操作與編程
- SAP Business Intelligence Quick Start Guide
- Building Google Cloud Platform Solutions
- MySQL Management and Administration with Navicat
- EDA技術(shù)及其創(chuàng)新實(shí)踐(Verilog HDL版)
- Arduino創(chuàng)意機(jī)器人入門:基于ArduBlock(第2版)
- Flash 8中文版全程自學(xué)手冊(cè)