跳转到主要内容

最近更新的页面

Module defaults

Ansible 用户指南 Playbook Guide

If you frequently call the same module with the same arguments, it can be useful to define defaul...

由 壳壳虫 更新于 1 周前

Loops

Ansible 用户指南 Playbook Guide

Ansible offers the loop, with_<lookup>, and until keywords to execute a task multiple times. E...

由 壳壳虫 更新于 1 周前

Lookups

Ansible 用户指南 Playbook Guide

Lookup plugins retrieve data from outside sources such as files, databases, key/value stores, API...

由 壳壳虫 更新于 1 周前

Ansible playbooks<span id="about_playbooks"></span>

Ansible 用户指南 Playbook Guide

Ansible Playbooks provide a repeatable, reusable, simple configuration management and multimachin...

由 壳壳虫 更新于 1 周前

Handlers: running operations on change

Ansible 用户指南 Playbook Guide

Sometimes you want a task to run only when a change is made on a machine. For example, you may wa...

由 壳壳虫 更新于 1 周前

Using filters to manipulate data

Ansible 用户指南 Playbook Guide

Filters let you transform JSON data into YAML data, split a URL to extract the hostname, get the ...

由 壳壳虫 更新于 1 周前

Executing playbooks

Ansible 用户指南 Playbook Guide

Ready to run your Ansible playbook? Running complex playbooks requires some trial and error so le...

由 壳壳虫 更新于 1 周前

Error handling in playbooks

Ansible 用户指南 Playbook Guide

When Ansible receives a non-zero return code from a command or a failure from a module, by defaul...

由 壳壳虫 更新于 1 周前

Setting the remote environment

Ansible 用户指南 Playbook Guide

1.1 You can use the environment keyword at the play, block, or task level to set an environment ...

由 壳壳虫 更新于 1 周前

Controlling where tasks run: delegation and local actions

Ansible 用户指南 Playbook Guide

By default, Ansible gathers facts and executes all tasks on the machines that match the hosts li...

由 壳壳虫 更新于 1 周前

Debugging tasks

Ansible 用户指南 Playbook Guide

Ansible offers a task debugger so you can fix errors during execution instead of editing your pla...

由 壳壳虫 更新于 1 周前

Conditionals

Ansible 用户指南 Playbook Guide

In a playbook, you may want to execute different tasks or have different goals, depending on the ...

由 壳壳虫 更新于 1 周前

Validating tasks: check mode and diff mode

Ansible 用户指南 Playbook Guide

Ansible provides two modes of execution that validate tasks: check mode and diff mode. These mode...

由 壳壳虫 更新于 1 周前

Blocks

Ansible 用户指南 Playbook Guide

Blocks create logical groups of tasks. Blocks also offer ways to handle task errors, similar to e...

由 壳壳虫 更新于 1 周前

Asynchronous actions and polling

Ansible 用户指南 Playbook Guide

By default, Ansible runs tasks synchronously, holding the connection to the remote node open unti...

由 壳壳虫 更新于 1 周前

Advanced playbook syntax

Ansible 用户指南 Playbook Guide

The advanced YAML syntax examples on this page give you more control over the data placed in YAML...

由 壳壳虫 更新于 1 周前

Working with playbooks

Ansible 用户指南 Playbook Guide

Playbooks record and execute Ansible's configuration, deployment, and orchestration functions. Th...

由 壳壳虫 更新于 1 周前

Search paths in Ansible

Ansible 用户指南 Playbook Guide

You can control the paths Ansible searches to find resources on your control node (including conf...

由 壳壳虫 更新于 1 周前

Using Ansible playbooks

Ansible 用户指南 Playbook Guide

[!NOTE] Making Open Source More Inclusive Red Hat is committed to replacing problematic language ...

由 壳壳虫 更新于 1 周前

Playbook Example: Continuous Delivery and Rolling Upgrades

Ansible 用户指南 Playbook Guide

What is continuous delivery? Continuous delivery (CD) means frequently delivering updates to your...

由 壳壳虫 更新于 1 周前