Ansible模块Module
什么是Ansible Module?
Ansible在命令行里使用Module
$ #使用module copy拷贝管理员节点文件/etc/hosts到所有远程主机/tmp/hosts
$ ansible all -m copy -a "src=/etc/hosts dest=/tmp/hosts"
$ #使用module yum在远程主机web上安装httpd包
$ ansible web -m yum -a "name=httpd state=present"Ansible在Playbook脚本使用Module
Module的特性
Last updated