ansible 默认提供了很多模块来供我们使用. 在 Linux 中, 我们可以通过 ansible-doc -l 命令查看到当前 ansible 都支持哪些模块, 通过 ansible-doc -s 模块名 又可以查看该模块有哪些参数可以使用.
Ansible 中文权威文档: http://www.ansible.com.cn/docs/
Ansible 常用模块:
ping 模块
raw 模块
yum 模块
4,apt 模块
5,pip 模块
6,synchronize 模块
7,template 模块
8,copy 模块
9,user 模块与 group 模块
10,service 模块
11,get_url 模块
12,fetch 模块
13,file 模块
14,unarchive 模块
15,command 模块和 shell
来源: http://www.bubuko.com/infodetail-3020308.html