Spec-Zone.ru › Ansible

Executing playbooks

Ready to run your Ansible playbook?

Running complex playbooks requires some trial and error so learn about some of the abilities that Ansible gives you to ensure successful execution. You can validate your tasks with “dry run” playbooks, use the start-at-task and step mode options to efficiently troubleshoot playbooks. You can also use Ansible debugger to correct tasks during execution. Ansible also offers flexibility with asynchronous playbook execution and tags that let you run specific parts of your playbook.

  • Validating tasks: check mode and diff mode
    • Using check mode
    • Using diff mode
  • Understanding privilege escalation: become
    • Using become
    • Risks and limitations of become
    • Become and network automation
    • Become and Windows
  • Tags
    • Adding tags with the tags keyword
    • Special tags
    • Selecting or skipping tags when you run a playbook
  • Executing playbooks for troubleshooting
    • start-at-task
    • Step mode
  • Debugging tasks
    • Enabling the debugger
    • Resolving errors in the debugger
    • Available debug commands
    • How the debugger interacts with the free strategy
  • Asynchronous actions and polling
    • Asynchronous ad hoc tasks
    • Asynchronous playbook tasks
  • Controlling playbook execution: strategies and more
    • Selecting a strategy
    • Setting the number of forks
    • Using keywords to control execution

© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/projects/ansible/latest/playbook_guide/playbooks_execution.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API