Playbook Execution — 8 Ansible Tutorials
Browse 8 tutorials about Playbook Execution on AnsiblePilot.
- Ansible ignore_errors Best Practices: Handle Failures Safely in Playbooks — Best practices for Ansible ignore_errors. When to use ignore_errors: true, when to use failed_when and rescue blocks, and how to handle errors safely.
- ansible-playbook --limit: Run Playbooks on Specific Hosts (Complete Guide) — Complete guide to ansible-playbook --limit. Target specific hosts, groups, and patterns. Use regex limits, exclude hosts, and safely restrict playbook execution.
- Using Ansible Tree Callback: Save Host Events to Files Easily — Discover how to use the Ansible Tree callback to save host events to JSON files. Enhance your logging and auditing with this powerful feature introduced in Ansible-core 2.11.
- Ansible troubleshooting - Error: no-jinja-when — The no-jinja-when rule in Ansible ensures clear and effective use of conditional statements, discouraging Jinja expressions in when clauses.
- Ansible troubleshooting - Error no-prompting — Here's an example of problematic code in an Ansible playbook, including user prompts and a 5-minute pause, which violates best practices and can be corrected by removing the prompts and pause.
- Ansible troubleshooting - Error no-same-owner — Learn to avoid pitfalls with Ansible no-same-owner rule, crucial for preventing unintended owner and group mismatches in file transfers.
- Output Ansible Playbooks as YAML with Callback Plugin — Learn how to use Ansible ping module to test connections and customize output with callback plugins, demonstrated with a detailed playbook and inventory setup.
- Ansible --extra-vars: Pass Variables from Command Line (Guide) — How to pass variables to Ansible playbooks using --extra-vars (-e). JSON, YAML, key=value syntax, file input, and variable precedence explained with examples.
All tags · All articles · Home