kubekey/docs/zh/modules/setup.md
liujian e3f2372ee0
feat: docs for modules (#2623)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-17 09:40:31 +00:00

23 lines
298 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# setup 模块
gather_fact的底层实现setup模块允许用户获取主机的信息
## 参数
null
## 使用示例
1. 在playbook中使用gather_fact
```yaml
- name: playbook
hosts: localhost
gather_fact: true
```
2. 在task中使用setup
```yaml
- name: setup
setup: {}
```