官术网_书友最值得收藏!

How to do it…

We just have to use the Ansible command and pass the ping module as an argument to parameter -m. A successful execution will return the string pong. It signifies that Ansible can reach the server and execute tasks, subject to the authorization level of the user, of course:

$ ansible localhost -m ping
localhost | SUCCESS => {
"changed": false,
"failed": false,
"ping": "pong"
}
主站蜘蛛池模板: 道真| 九寨沟县| 枞阳县| 千阳县| 澄迈县| 菏泽市| 全州县| 上虞市| 台中市| 清新县| 肃宁县| 揭西县| 通州区| 舒兰市| 盘山县| 盐津县| 西丰县| 醴陵市| 顺义区| 白山市| 赤壁市| 贡觉县| 达日县| 拜城县| 新和县| 石阡县| 玉溪市| 自贡市| 郁南县| 通河县| 九江市| 瓮安县| 贞丰县| 固始县| 乌海市| 和林格尔县| 兴安盟| 定日县| 潍坊市| 广德县| 塔河县|