Course
digicode: LINANS
Automation with Ansible
A compact introduction to Ansible for admins and DevOps/platform engineers. Learn about Ansible playbooks, roles, variables, vault, and automation through numerous hands-on labs. Also discover how AI can support your daily automation tasks.
Duration
2 days
Price
1'650.–
Course documents
Digital courseware
New
Ansible basics made easy
Course facts
Download as PDF- Installing and configuring Ansible and managing inventories
- Automating recurring IT tasks with ansible
- Securely using playbooks and variables
- Creating dynamic configurations with Jinja2 templates
- Structuring automations with roles and handling errors reliably
- Developing, testing, and documenting playbooks using AI, and protecting sensitive data with Ansible Vault
- What is Ansible and why automation?
- Architecture and functionality
- The inventory system: Static & dynamic
- Practice: Ansible installation and first SSH connections
- Configuration files and their order
- Ad-hoc commands vs. playbooks
- Modules and syntax help
- Practice: Ad-hoc commands and first tasks
- YAML basics and common errors
- Structure and flow of playbooks
- Modules by category: System, network, cloud, Windows
- Practice: File & service management, security, user management
- Defining and using variables
- Facts & registered variables
- Variable hierarchy and priority
- Inclusions (include/import)
- Practice: Displaying facts, testing variables
- Syntax, expressions, filters and tests
- Lookup plugins and data processing
- Control structures (if/for) and whitespace control
- Practice: Template creation and dynamic configuration
- Standard and nested loops
- Iteration via lists, dictionaries, files, inventory, number series
- “until” for repetitions with condition
- Practice: Repeated tasks and targeted evaluations
- when clauses: Conditional execution of tasks
- Handlers & notify/lists
- Tags for selective execution
- Block/Rescue/Always for robust error handling
- Practice: checking ACLs, restarting services, intercepting errors
- Structure and advantages of roles
- pre-/post_tasks, dependencies and Ansible Galaxy
- Creating and documenting roles
- Practice: converting playbooks into roles, system checks as roles
- Prompting Rules
- Creating a Playbook with AI
- Reviewing a Playbook Created by AI
- Improving a Playbook Created by AI
- Creating Documentation with AI
- Handling sensitive data
- Encryption and password management
- Vault IDs for multiple environments
- Practice: encrypting variables and using them securely
The course is structured as a workshop with theoretical impulses. For each chapter there is initial information and then labs, which the participants solve independently. The labs contain the solutions so that the participant can also recapitulate them after the course during self-study.
The labs are extensive and take a total of around 3 hours per day.
- System and network administrators who want to automate recurring tasks
- IT professionals and those new to DevOps/platform engineering who are looking for a hands-on introduction to Ansible
- Experienced administrators with Shell, Bash, or PowerShell experience who want to standardize their automation processes
- Teams that want to establish reproducible configurations and deployments
- Basic knowledge of IT system administration and working with the command line is required
- Experience with SSH and text-based configuration files is a plus
- Prior knowledge of Ansible or YAML is not required