> For the complete documentation index, see [llms.txt](https://wiki.clay-wangzhi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.clay-wangzhi.com/ansible.md).

# Ansible

- [1 初识Ansible](https://wiki.clay-wangzhi.com/ansible/1-chu-shi-ansible.md)
- [2 Ansible Inventory 配置详解](https://wiki.clay-wangzhi.com/ansible/2-ansible-inventory-pei-zhi-xiang-jie.md)
- [3 Ansible Ad-hoc 命令集](https://wiki.clay-wangzhi.com/ansible/3-ansible-adhoc-ming-ling-ji.md)
- [3 Ansible lineinfile 模块详解](https://wiki.clay-wangzhi.com/ansible/3-ansible-lineinfile-mo-kuai-xiang-jie.md)
- [4 Ansible Playbook](https://wiki.clay-wangzhi.com/ansible/4-ansible-playbook.md)
- [4.1 Playbook的结构及handler用法](https://wiki.clay-wangzhi.com/ansible/4-ansible-playbook/4.1-playbook-de-jie-gou-ji-handler-yong-fa.md)
- [4.2 Playbook循环语句](https://wiki.clay-wangzhi.com/ansible/4-ansible-playbook/4.2-playbook-xun-huan-yu-ju.md)
- [4.3 Playbook条件语句](https://wiki.clay-wangzhi.com/ansible/4-ansible-playbook/4.3-playbook-tiao-jian-yu-ju.md)
- [4.4 Playbook高级用法](https://wiki.clay-wangzhi.com/ansible/4-ansible-playbook/4.4-playbook-gao-ji-yong-fa.md)
- [4.5 Playbook之tags](https://wiki.clay-wangzhi.com/ansible/4-ansible-playbook/4.5-playbook-zhi-tags.md)
- [4.6 巧用Roles](https://wiki.clay-wangzhi.com/ansible/4-ansible-playbook/4.6-qiao-yong-roles.md)
- [4.7 文件管理模块及Jinja2过滤器](https://wiki.clay-wangzhi.com/ansible/4-ansible-playbook/4.7-wen-jian-guan-li-mo-kuai-ji-jinja2-guo-lv-qi.md)
- [4.8 yaml 语法](https://wiki.clay-wangzhi.com/ansible/4-ansible-playbook/4.8-yaml-yu-fa.md)
- [5 Ansible变量](https://wiki.clay-wangzhi.com/ansible/5-ansible-bian-liang.md)
- [5.1 自定义变量](https://wiki.clay-wangzhi.com/ansible/5-ansible-bian-liang/5.1-zi-ding-yi-bian-liang.md)
- [5.2 Fact变量](https://wiki.clay-wangzhi.com/ansible/5-ansible-bian-liang/5.2-fact-bian-liang.md)
- [5.3 魔法变量](https://wiki.clay-wangzhi.com/ansible/5-ansible-bian-liang/5.3-mo-fa-bian-liang.md)
- [5.4 使用lookup生成变量](https://wiki.clay-wangzhi.com/ansible/5-ansible-bian-liang/5.4-shi-yong-lookup-sheng-cheng-bian-liang.md)
- [5.5 使用vault配置加密](https://wiki.clay-wangzhi.com/ansible/5-ansible-bian-liang/5.5-shi-yong-vault-pei-zhi-jia-mi.md)
- [6 Ansible使用优化](https://wiki.clay-wangzhi.com/ansible/6-ansible-shi-yong-you-hua.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://wiki.clay-wangzhi.com/ansible.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
