最近更新的页面
Callback plugins
Callback plugins enable adding new behaviors to Ansible when responding to events. By default, ca...
Cache plugins
Cache plugins allow Ansible to store gathered facts or inventory source data without the performa...
Become plugins
2.8 Become plugins work to ensure that Ansible can use certain privilege escalation systems when ...
Action plugins
Action plugins act in conjunction with modules <module_plugins> to execute the actions required ...
Discovering variables: facts and magic variables
With Ansible you can retrieve or discover certain variables containing information about your rem...
Play Argument Validation
Beginning in version 2.20, you can enable argument validation using the play keyword validate_ar...
Using variables
Ansible uses variables to manage differences between systems. With Ansible, you can execute tasks...
Tests
Tests in Jinja are a way of evaluating template expressions and returning True or False. Jinja sh...
The undef function: add hint for undefined variables
2.12 The Jinja2 undef() function returns a Python AnsibleUndefined object, derived from jinja2...
The now function: get the current time
2.8 The now() Jinja2 function retrieves a Python datetime object or a string representation for ...
Templating (Jinja2)
Ansible uses Jinja2 templating to enable dynamic expressions and access to variables <playbooks_...
Tags
If you have a large playbook, it may be useful to run only specific parts of it instead of runnin...
Controlling playbook execution: strategies and more
By default, Ansible runs each task on all hosts affected by a play before starting the next task ...
Executing playbooks for troubleshooting
When you are testing new plays or debugging playbooks, you may need to run the same play multiple...
Masking secrets in Ansible output<span id="playbooks_secret_masking"></span>
2.22 Ansible can register values as secrets and mask them wherever Ansible writes output. Once a ...
Roles
Roles let you automatically load related vars, files, tasks, handlers, and other Ansible artifact...
Reusing Ansible artifacts
You can write a simple playbook in one very large file, and most users learn the one-file approac...
Python3 in templates
Ansible uses Jinja2 to take advantage of Python data types and standard functions in templates an...
Interactive input: prompts
If you want your playbook to prompt the user for certain input, add a 'vars_prompt' section. Prom...
Understanding privilege escalation: become<span id="become"></span>
Ansible uses existing privilege escalation systems to execute tasks with root privileges or with ...