EIEIOTECHNOVATION
← Training programmes

EIEIO / CLOUD NATIVE & DEVOPS

Ansible Part II Intermediate

Course outline

4 days

Duration

4 days

This course will give you intermediate concepts of Ansible and configuration management. This course is suitable for Ansible developers and operators who already have an understanding Ansible core elements and applications but are now looking to enhance their skills in applying automation using Ansible.

Target Audience

DevOps Engineers

Linux/Unix Systems Administrators Automation Engineers

Infrastructure (Network, Application, Platform, Database, OS) Administrators Software Engineers and Developers

Prerequisites for this course

Attended Ansible Part I: Essentials for beginner

Course Objectives

After completing this course, you should be able to:

  • Use advanced features of Ansible to work with data
  • Understand complex Ansible Playbooks
  • Write effective playbooks to aid system administration
  • Use Ansible Tower to manage complex automation workflows

Course Outline:

Complex Playbooks

Dealing with Badly Behaved Commands: changed_when and failed_when

Filters

The Default Filter

Filters for Registered Variables Filters That Apply to File Paths Writing Your Own Filter

Lookups

template csvfile dnstxt redis_kv

Writing Your Own Lookup Plugin More Complicated Loops

with_lines with_fileglob with_dict

Looping Constructs as Lookup Plugins Loop Controls

Setting the Variable Name Labeling the Output

Includes

Dynamic Includes Role Includes

Blocks

Error Handling with Blocks Encrypting Sensitive Data with Vault

Customizing Hosts, Runs, and Handlers Patterns for Specifying Hosts Limiting Which Hosts Run

Running a Task on the Control Machine

Running a Task on a Machine Other Than the Host Running on One Host at a Time

Running on a Batch of Hosts at a Time Running Only Once

Running Strategies Linear

Free

Advanced Handlers

Handlers in Pre and Post Tasks Flush Handlers

Handlers Listen Manually Gathering Facts

Retrieving the IP Address from the Host Custom Ansible Modules, Vaults, and Galaxies

Executing multiple modules using the command line Reviewing the module index

Accessing module documentation from the command line Module return values

Developing custom modules Avoiding common pitfalls

Testing and documenting your module The module checklist

Consuming and Creating Plugins Getting Started with Ansible Tower

Technical requirements Installing AWX

Running your first playbook from AWX Creating an AWX project

Creating an inventory Creating a job template Running a job

Controlling access to AWX Creating a user

Creating a team Creating an organization

Assigning permissions in AWX

Troubleshooting and Testing Strategies Technical requirements

Digging into playbook execution problems Using host facts to diagnose failures Testing with a playbook

Using check mode

Solving host connection issues Passing working variables via the CLI Limiting the host's execution Flushing the code cache

Checking for bad syntax

Programme scope, delivery arrangements and suitability are confirmed during enquiry.