1.安装
yum install epel-release -y
yum install ansible –y
2.添加节点
vim /etc/ansible/hosts
[emrclient]
172.25.204.1
3.执行命令
ansible emrclient -k -m command -a 'date'
yum install epel-release -y
yum install ansible –y
vim /etc/ansible/hosts
[emrclient]
172.25.204.1
ansible emrclient -k -m command -a 'date'