自用:ansible常用板塊

ping  ping模塊用來檢查目標主機是否在線  例子:ansible webserver -m ping yum  yum模塊用來在Centos系統上使用yum命令安裝軟件包  選項:  name: 指定安裝包的名字  state:latest 安裝最新版 present 默認安裝 installed 安裝 absent 卸載 removed 卸載  例子:ansible web
相關文章
相關標籤/搜索