0
点赞
收藏
分享

微信扫一扫

ansible模块--hostname模块


修改hostname主机名​​


[root@ansible ~]# ansible mysql -m hostname -a 'name=mysql8'
192.168.56.88 | CHANGED => {
"ansible_facts": {
"ansible_domain": "",
"ansible_fqdn": "mysql8",
"ansible_hostname": "mysql8",
"ansible_nodename": "mysql8",
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": true,
"name": "mysql8"
}

版权声明:本文为博主原创文章,未经博主允许不得转载。

ansible

举报

相关推荐

0 条评论