本文共 490 字,大约阅读时间需要 1 分钟。
yum 模块用于软件安装,升级,卸载 如下:
conf_file 设定远程yum执行时所依赖的配置文件disable_gpg_check 安装之前是否检查gpg_keyname 软件名称,支持软件组安装update_cache 更新缓存enablerepo 指定repo源skip_broken 跳过异常软件节点state 包括:installed 、present、 latest 、absent 、removedansible -i /etc/ansible/hosts all -m yum -a 'name=telnet,httpd state=installed' 安装ansible -i /etc/ansible/hosts all -m yum -a 'name=telnet,httpd state=absent' 卸载
转载于:https://blog.51cto.com/5776643/2376189