Ansiable ad-hoc
1. 批量安装yum 源
ansible dbservers -m yum -a 'name=redhat-lsb state=present' -o
2. 批量执行某一条命令
ansible apps -m command -a 'lsb_release -a'
ansible dbservers -m yum -a 'name=redhat-lsb state=present' -o
ansible apps -m command -a 'lsb_release -a'