文章目录 HostName 模块 HostName 模块 功能:管理主机名 示例: 修改远程主机名 [root@master ~]# ansible 192.168.169.161 -m hostname -a "name=demo"