UsefulLinks
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
5.
Flow Control and Data Manipulation
5.1.
Conditionals
5.1.1.
The when Statement
5.1.1.1.
Basic Syntax
5.1.1.2.
Boolean Evaluation
5.1.1.3.
Variable Testing
5.1.2.
Conditional Operators
5.1.2.1.
Comparison Operators
5.1.2.2.
Logical Operators
5.1.2.3.
String Matching
5.1.2.4.
List Membership
5.1.3.
Complex Conditionals
5.1.3.1.
Multiple Conditions
5.1.3.2.
Nested Conditions
5.1.3.3.
Conditional Groups
5.1.4.
Applying Conditionals
5.1.4.1.
Task Conditionals
5.1.4.2.
Play Conditionals
5.1.4.3.
Handler Conditionals
5.2.
Loops
5.2.1.
The loop Keyword
5.2.1.1.
Basic Loop Syntax
5.2.1.2.
Loop Variables
5.2.1.3.
Loop Control
5.2.2.
Loop Types
5.2.2.1.
Simple Lists
5.2.2.2.
List of Dictionaries
5.2.2.3.
Numeric Ranges
5.2.2.4.
Dictionary Loops
5.2.3.
Legacy Loop Keywords
5.2.3.1.
with_items
5.2.3.2.
with_dict
5.2.3.3.
with_sequence
5.2.3.4.
Migration to loop
5.2.4.
Loop Control
5.2.4.1.
loop_control
5.2.4.2.
Loop Variables
5.2.4.3.
Loop Labels
5.2.4.4.
Loop Pausing
5.2.5.
Registering Loop Results
5.2.5.1.
Loop Result Structure
5.2.5.2.
Accessing Loop Results
5.2.5.3.
Conditional Loop Results
5.3.
Error Handling
5.3.1.
Ignoring Errors
5.3.1.1.
ignore_errors Directive
5.3.1.2.
Use Cases
5.3.1.3.
Best Practices
5.3.2.
Custom Failure Conditions
5.3.2.1.
failed_when Directive
5.3.2.2.
Return Code Evaluation
5.3.2.3.
Output Analysis
5.3.3.
Custom Change Conditions
5.3.3.1.
changed_when Directive
5.3.3.2.
Change Detection
5.3.3.3.
Idempotency Control
5.3.4.
Block Error Handling
5.3.4.1.
block Directive
5.3.4.2.
rescue Directive
5.3.4.3.
always Directive
5.3.4.4.
Error Recovery Strategies
5.4.
Lookups
5.4.1.
Lookup Plugin Syntax
5.4.1.1.
Basic Lookup Usage
5.4.1.2.
Lookup Parameters
5.4.1.3.
Error Handling
5.4.2.
Common Lookup Plugins
5.4.2.1.
file Lookup
5.4.2.2.
env Lookup
5.4.2.3.
pipe Lookup
5.4.2.4.
password Lookup
5.4.2.5.
url Lookup
5.4.2.6.
template Lookup
5.4.3.
Advanced Lookup Usage
5.4.3.1.
Combining Lookups
5.4.3.2.
Lookup with Variables
5.4.3.3.
Lookup Error Handling
Previous
4. Variables and Facts
Go to top
Next
6. Templates