Useful Links
Computer Science
Other Tools and Technologies
Ansible Automation
1. Introduction to Automation and Ansible
2. Getting Started with Ansible
3. Ansible Playbooks
4. Variables and Facts
5. Flow Control and Data Manipulation
6. Templates
7. Roles and Collections
8. Advanced Ansible Topics
9. Ansible for Specialized Environments
10. Ansible Automation Platform
11. Best Practices and Project Organization
Flow Control and Data Manipulation
Conditionals
The when Statement
Basic Syntax
Boolean Evaluation
Variable Testing
Conditional Operators
Comparison Operators
Logical Operators
String Matching
List Membership
Complex Conditionals
Multiple Conditions
Nested Conditions
Conditional Groups
Applying Conditionals
Task Conditionals
Play Conditionals
Handler Conditionals
Loops
The loop Keyword
Basic Loop Syntax
Loop Variables
Loop Control
Loop Types
Simple Lists
List of Dictionaries
Numeric Ranges
Dictionary Loops
Legacy Loop Keywords
with_items
with_dict
with_sequence
Migration to loop
Loop Control
loop_control
Loop Variables
Loop Labels
Loop Pausing
Registering Loop Results
Loop Result Structure
Accessing Loop Results
Conditional Loop Results
Error Handling
Ignoring Errors
ignore_errors Directive
Use Cases
Best Practices
Custom Failure Conditions
failed_when Directive
Return Code Evaluation
Output Analysis
Custom Change Conditions
changed_when Directive
Change Detection
Idempotency Control
Block Error Handling
block Directive
rescue Directive
always Directive
Error Recovery Strategies
Lookups
Lookup Plugin Syntax
Basic Lookup Usage
Lookup Parameters
Error Handling
Common Lookup Plugins
file Lookup
env Lookup
pipe Lookup
password Lookup
url Lookup
template Lookup
Advanced Lookup Usage
Combining Lookups
Lookup with Variables
Lookup Error Handling
Previous
4. Variables and Facts
Go to top
Next
6. Templates