Ansible 301 - Customizing Ansible

Price
$2,595.00 USD

Duration
4 Days

 

Delivery Methods
Virtual Instructor Led
Private Group

Course Overview

This course is designed to move students beyond Ansible Essentials, and joins Ansible with other DevOps skill sets, including: Python scripting, utilizing Ansible Galaxy, running automated solutions with Jenkins, syncing code with Git and GitHub, continuous integration, debugging / linting, and much more! The lessons are built around current concepts observed within enterprises using Ansible. Class is a combination of lecture by demonstration, coding along with the instructor, and hands-on labs. Students are invited to help customize this course by bringing their own projects, solutions, and ideas to ensure class subjects remain as relevant as possible.

Course Objectives

  • Advanced Ansible skills and tools
  • Creating your own collection
  • Writing your own Ansible plugin module or other plugins
  • Playbook and solution architecture including best practices and solutions throughout industry
  • Creating Execution Environments
  • ansible-builder
  • ansible-runner
  • AI LLM prompt engineering for relevant configuration snippets and solutions

Who Should Attend?

  • DevOps Engineers
  • System and Cloud Administrators
  • Network Engineers and Developers
  • Python Developers
  • Top-rated instructors: Our crew of subject matter experts have an average instructor rating of 4.8 out of 5 across thousands of reviews.
  • Authorized content: We maintain more than 35 Authorized Training Partnerships with the top players in tech, ensuring your course materials contain the most relevant and up-to date information.
  • Interactive classroom participation: Our virtual training includes live lectures, demonstrations and virtual labs that allow you to participate in discussions with your instructor and fellow classmates to get real-time feedback.
  • Post Class Resources: Review your class content, catch up on any material you may have missed or perfect your new skills with access to resources after your course is complete.
  • Private Group Training: Let our world-class instructors deliver exclusive training courses just for your employees. Our private group training is designed to promote your team’s shared growth and skill development.
  • Tailored Training Solutions: Our subject matter experts can customize the class to specifically address the unique goals of your team.

Course Prerequisites

  • Coding experience in another language serves as an adequate prerequisite
  • Ansible 101 - Ansible Essentials
  • Ansible 201 - Python and Ansible for Automation

Agenda

Introduction to Environment

  • Running with GitHub
  • Syncing Git and GitHub
  • Cloning repos
  • Commits
  • Push and Pull operations
  • Master and Branches
  • Documenting work
  • Moving HEAD
  • GitHub Desktop for GUIs

Ansible and Jenkins

  • Syncing GitHub Playbooks to Jenkins
  • Running Playbooks with Jenkins
  • Building Jenkins Jobs
  • Jenkins and Plugins to know

Roles and Galaxy

  • Building an Ansible Role
  • Role Testing with Molecule
  • Using a Role within a Playbook (review)
  • Pushing Role to GitHub
  • Syncing Ansible Galaxy to GitHub
  • Making Role Highly Available with Galaxy
  • Updating Roles on Galaxy
  • Documenting Roles

Advanced Ansible

  • Blocks & Rollback
  • Asynchronous Actions and Polling
  • Check Mode (“Dry Run”)
  • Playbook Debugger
  • Delegation, Rolling Updates, and Local Actions
  • Setting the Environment (and Working With Proxies)
  • Working With Language-Specific Version Managers
  • Error Handling In Playbooks
  • Advanced Syntax
  • Working With Plugins
  • Prompts
  • Tags
  • Using Vault in playbooks
  • Start and Step
  • Playbook Keywords
  • Lookups
  • Module defaults

Python Catchup & Review

  • Overview of Python and Ansible
  • Conditional expressions
  • Relational and Boolean operators
  • Using Paramiko to SSH with keys and passwords
  • Python and Jinja templating

Python in Playbooks

  • Using methods within playbooks
  • Python methods vs Jinja2 filters
  • Calling Scripts with Ansible
  • Writing Python Scripts for Customer Environment
  • Returning JSON when our script finishes
  • Ansible callback plugins - returning data other than JSON

Extending the Ansible Library

  • Extending Ansible to support (Your Unsupported Ansible Vendor Here)
  • Galaxy for new Ansible modules
  • GitHub for new Ansible modules

Indexing and slicing

  • Built-in functions
  • Writing custom functions
  • Getting at methods
  • Iterating with Loops (for and while)
  • Working with files
  • Getting at RESTful interfaces with Python
  • Working with JSON
  • Python, Ansible and Paramiko

Creating Ansible Modules

  • Writing a Python Script
  • Adopting a Python Script to function as a Ansible Module
  • Pushing our new module to GitHub
  • Documenting our new module
  • Classes of Ansible Modules available

Ansible and for Enterprise

  • Hiding credentials
  • Using Ansible Vault
  • Collaborating on Playbooks
  • Options for logging results
  • Options for running Ansible Jobs in an Enterprise
  • - Jenkins
  • - Ansible Towew
  • - Logging Results
  • - Rolling Back bad jobs & other jobs
 

Get in touch to schedule training for your team
We can enroll multiple students in an upcoming class or schedule a dedicated private training event designed to meet your organization’s needs.

 



Do You Have Additional Questions? Please Contact Us Below.

contact us contact us 
 
Contact Us about Starting Your Business Training Strategy with New Horizons