yum:安装软件、删除软件、升级所有软件、RPM安装。yum模块时针对centos,如果时ubuntu,则换成apt模块
name: 安装最新版本的apache
yum: name=httpd state=latestname: 移除apache
yum: name=httpd state=absentname: 安装一个特殊版本的apache
yum: name=httpd-2.2.29-1.4.amzn1 state=presentname: 升级所有的软件包
yum: name=* state=latestname: 从一个远程yum仓库安装nginx
yum: name=http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm state=presentname: 从本地仓库安装nginx
yum: name=/usr/local/src/nginx-release-centos-6-0.el6.ngx.noarch.rpm state=presentname: 安装整个Development tools相关的软件包
yum: name="@Development tools" state=present