Getting Started with Ansible Development Tools in VS Code

IMPORTANT TO NOTE

This is the shorter version of this workshop (~2 hours). For the extended session please πŸ”¬ click here

This hands-on workshop teaches you to create, test, and package Ansible content using the full suite of Ansible development tools inside Visual Studio Code. You’ll scaffold a collection, write a custom module, lint and test your automation with Molecule and pytest-ansible, build an execution environment, and sign your content for supply-chain security.

IMPORTANT TO NOTE: This is NOT a deep dive, in the weeds, advanced workshop β€” it’s an introduction.

Workshop Resources

Resource Link
Workshop content and exercises rhpds.github.io/zt-ans-bu-dev-tools
Lab source repository github.com/rhpds/zt-ans-bu-dev-tools
Presenter instructions and guide Presenter instructions and guide

Who is this workshop best for?

This workshop is intended for people who want to learn how to create, test, and distribute Ansible content using the latest development tools. Whether you’re building your first collection or looking to adopt modern testing and packaging workflows, this workshop will walk you through the developer experience end-to-end. The intended audience is anyone who writes Ansible automation and wants to adopt best practices for content development.

Target audience

Ansible developers, automation engineers, DevOps engineers, platform engineers, systems administrators, and anyone interested in building and testing Ansible content.

Attendee Prerequisites

There is no student prep work required prior to the workshop. It is recommended to complete the free Red Hat training course Ansible Basics: Automation Technical Overview.

Presentation Deck

Lab provisioner

This lab environment is available via the Red Hat Demo Platform under the Getting Started with Ansible Development Tools catalog item.

Lab Index (Estimate total time ⏱️ 2 hours)

Activity Link Estimated Time
Slides: Introduction + Workshop Brief πŸ–₯️ Google Slides ⏱️ 10 minutes
Exercise 1 β€” Workshop tips πŸš€ Launch Exercise ⏱️ 5 minutes
Exercise 2 β€” Creating a collection with the Ansible extension for VS Code πŸš€ Launch Exercise ⏱️ 10 minutes
Exercise 3 β€” Using Ansible development environment πŸš€ Launch Exercise ⏱️ 10 minutes
Exercise 4 β€” Adding a module to our collection πŸš€ Launch Exercise ⏱️ 10 minutes
Exercise 5 β€” Testing our collection with Molecule πŸš€ Launch Exercise ⏱️ 15 minutes
Exercise 6 β€” Functional testing with pytest-ansible πŸš€ Launch Exercise ⏱️ 10 minutes
Exercise 7 β€” Creating an Execution Environment with ansible-builder πŸš€ Launch Exercise ⏱️ 15 minutes
Exercise 8 β€” Introducing supply chain security with ansible-sign πŸš€ Launch Exercise ⏱️ 10 minutes
Exercise 9 β€” What's next? πŸš€ Launch Exercise ⏱️ 5 minutes
Slides: Close Out & Q&A πŸ–₯️ Google Slides ⏱️ 5 minutes

Demos

Any of the individual labs (that make up the workshop) can be used as a standalone demo.

Learning Resources

Documentation

Going Further

Additional material for Ansible Development Tools

Title Type Link
Ansible Automation Platform Self-Paced Labs Interactive labs πŸ”¬ Self-Paced Labs
Red Hat Training and Certification for AAP Training πŸ“– Training Catalog
Get a Trial Subscription for AAP Trial πŸ§ͺ Start Trial


Ansible Workshop

This is an official Ansible Workshop

This workshop is maintained by the Red Hat Ansible Technical Marketing Team.
Please open an issues on Github

ansible workshop logo