跳转到主要内容

最近更新的页面

Callback plugins

Ansible 用户指南 Plugins

Callback plugins enable adding new behaviors to Ansible when responding to events. By default, ca...

由 壳壳虫 更新于 1 周前

Cache plugins

Ansible 用户指南 Plugins

Cache plugins allow Ansible to store gathered facts or inventory source data without the performa...

由 壳壳虫 更新于 1 周前

Become plugins

Ansible 用户指南 Plugins

2.8 Become plugins work to ensure that Ansible can use certain privilege escalation systems when ...

由 壳壳虫 更新于 1 周前

Action plugins

Ansible 用户指南 Plugins

Action plugins act in conjunction with modules <module_plugins> to execute the actions required ...

由 壳壳虫 更新于 1 周前

Discovering variables: facts and magic variables

Ansible 用户指南 Playbook Guide

With Ansible you can retrieve or discover certain variables containing information about your rem...

由 壳壳虫 更新于 1 周前

Play Argument Validation

Ansible 用户指南 Playbook Guide

Beginning in version 2.20, you can enable argument validation using the play keyword validate_ar...

由 壳壳虫 更新于 1 周前

Using variables

Ansible 用户指南 Playbook Guide

Ansible uses variables to manage differences between systems. With Ansible, you can execute tasks...

由 壳壳虫 更新于 1 周前

Tests

Ansible 用户指南 Playbook Guide

Tests in Jinja are a way of evaluating template expressions and returning True or False. Jinja sh...

由 壳壳虫 更新于 1 周前

The undef function: add hint for undefined variables

Ansible 用户指南 Playbook Guide

2.12 The Jinja2 undef() function returns a Python AnsibleUndefined object, derived from jinja2...

由 壳壳虫 更新于 1 周前

The now function: get the current time

Ansible 用户指南 Playbook Guide

2.8 The now() Jinja2 function retrieves a Python datetime object or a string representation for ...

由 壳壳虫 更新于 1 周前

Templating (Jinja2)

Ansible 用户指南 Playbook Guide

Ansible uses Jinja2 templating to enable dynamic expressions and access to variables <playbooks_...

由 壳壳虫 更新于 1 周前

Tags

Ansible 用户指南 Playbook Guide

If you have a large playbook, it may be useful to run only specific parts of it instead of runnin...

由 壳壳虫 更新于 1 周前

Controlling playbook execution: strategies and more

Ansible 用户指南 Playbook Guide

By default, Ansible runs each task on all hosts affected by a play before starting the next task ...

由 壳壳虫 更新于 1 周前

Executing playbooks for troubleshooting

Ansible 用户指南 Playbook Guide

When you are testing new plays or debugging playbooks, you may need to run the same play multiple...

由 壳壳虫 更新于 1 周前

Masking secrets in Ansible output<span id="playbooks_secret_masking"></span>

Ansible 用户指南 Playbook Guide

2.22 Ansible can register values as secrets and mask them wherever Ansible writes output. Once a ...

由 壳壳虫 更新于 1 周前

Roles

Ansible 用户指南 Playbook Guide

Roles let you automatically load related vars, files, tasks, handlers, and other Ansible artifact...

由 壳壳虫 更新于 1 周前

Reusing Ansible artifacts

Ansible 用户指南 Playbook Guide

You can write a simple playbook in one very large file, and most users learn the one-file approac...

由 壳壳虫 更新于 1 周前

Python3 in templates

Ansible 用户指南 Playbook Guide

Ansible uses Jinja2 to take advantage of Python data types and standard functions in templates an...

由 壳壳虫 更新于 1 周前

Interactive input: prompts

Ansible 用户指南 Playbook Guide

If you want your playbook to prompt the user for certain input, add a 'vars_prompt' section. Prom...

由 壳壳虫 更新于 1 周前

Understanding privilege escalation: become<span id="become"></span>

Ansible 用户指南 Playbook Guide

Ansible uses existing privilege escalation systems to execute tasks with root privileges or with ...

由 壳壳虫 更新于 1 周前