Gathering Facts
在 playbooks 中有对于 Facts 做描述,它代表的是一个系统中已发现的变量.These can be used to implement conditional execution of tasks but also just to get ad-hoc information about your system. 可通过如下方式查看所有的 facts:
$ ansible all -m setup我们也可以对这个命令的输出做过滤,只输出特定的一些 facts,详情请参考 “setup” 模块的文档.
如果你已准备好仔细研究 Playbooks ,可以继续读读 Variables ,会对 facts有更多了解.
See also
Ansible的配置文件
All about the Ansible config file
模块相关
A list of available modules
Playbooks
Using Ansible for configuration management & deployment
Questions? Help? Ideas? Stop by the list on Google Groups
#ansible IRC chat channel
学员评价