使用Ansible更新bash
$ ansible -m yum -a "name=bash state=latest" all --sudo
其他设置文件
www ansible_ssh_host=XXX.XXX.XXX.XXX
app ansible_ssh_host=XXX.XXX.XXX.XXX
db ansible_ssh_host=XXX.XXX.XXX.XXX
[defaults]
hostfile = ~/ansible_hosts
$ ansible -m yum -a "name=bash state=latest" all --sudo
其他设置文件
www ansible_ssh_host=XXX.XXX.XXX.XXX
app ansible_ssh_host=XXX.XXX.XXX.XXX
db ansible_ssh_host=XXX.XXX.XXX.XXX
[defaults]
hostfile = ~/ansible_hosts