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
原文:https://www.cnblogs.com/bmjoker/p/10694444.html