Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Viewing all articles
Browse latest Browse all 11063

ansible YUM常用模块

$
0
0

选项:

config_file:yum的配置文件

disable_gpg_check:关闭gpg_check

disablerepo:不启用某个源

enablerepo:启用某个源

list

name:要进行操作的软件包的名字,也可以传递一个url或者一个本地的rpm包的路径

state # 状态(installted ,present<安装>,latest<安装>,absent<删除>)

安装软件

~ ansible k8s -m yum -a 'name=vim state=present'


Viewing all articles
Browse latest Browse all 11063

Trending Articles