Packt
Automation with Ansible - Hands-on DevOps

Gain next-level skills with Coursera Plus for $199 (regularly $399). Save now.

Packt

Automation with Ansible - Hands-on DevOps

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

1 week to complete
at 10 hours a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

1 week to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • Set up and configure Ansible in your environment for automation tasks.

  • Write and execute powerful Ansible playbooks to automate infrastructure management.

  • Manage inventories, use variables, and configure dynamic environments with Ansible.

  • Securely manage sensitive data with Ansible Vault and troubleshoot automation tasks effectively.

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

January 2026

Assessments

16 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

There are 16 modules in this course

In this module, we will provide an overview of the course and lay the groundwork for your Ansible journey. You will get a clear understanding of the course's objectives and how the lessons will guide you in mastering Ansible for automation. We’ll also discuss the practical applications of what you will be learning throughout the course.

What's included

1 video1 reading

In this module, we will dive deep into the world of Ansible, exploring its role in automation. You’ll learn key foundational concepts and how Ansible simplifies automation tasks. Additionally, we’ll introduce the fundamental terminologies, setup requirements, and the tools Ansible uses, laying the foundation for a deeper exploration.

What's included

10 videos1 assignment

In this module, we will walk you through the step-by-step process of installing and configuring Ansible on your machine. From setting up the environment to configuring passwordless SSH authentication and validating your installation, you’ll be ready to execute Ansible automation tasks. This section is essential for ensuring that your environment is set up correctly for successful automation.

What's included

9 videos1 assignment

In this module, we will dive into Ansible inventory, exploring its essential role in automation. You will learn how to organize hosts and groups, manage inventory files, and leverage variables to make your automation more dynamic. Practical demonstrations will help you understand how to effectively manage and utilize inventory.

What's included

11 videos1 assignment

In this module, you’ll learn about the powerful Ansible modules that facilitate automation tasks. We’ll show you how to execute ad-hoc tasks and commands for quick results, giving you the flexibility to handle immediate automation needs. You’ll also explore how to access Ansible's documentation to find the right modules for your tasks.

What's included

11 videos1 assignment

In this module, you’ll discover the power of Ansible playbooks—scripts that define automation tasks. We’ll guide you through writing your first playbook, understanding its YAML structure, and leveraging advanced features. By the end of this section, you'll be able to create playbooks that automate complex tasks like Docker and MySQL setups.

What's included

11 videos1 assignment

In this module, we’ll introduce Ansible’s capabilities for managing Windows-based systems. You’ll learn how to configure and manage Windows nodes, write and execute Windows-specific playbooks, and run ad-hoc tasks. By the end of the section, you’ll be equipped to automate Windows environments with Ansible.

What's included

6 videos1 assignment

In this module, we will explore Ansible's powerful variable system, including magic variables and facts. You’ll learn how to define and use variables within your playbooks and dynamically retrieve system information using Ansible facts. We will also demonstrate how to disable facts gathering for more efficient playbook execution.

What's included

9 videos1 assignment

In this module, we’ll focus on making your playbooks more dynamic and efficient with conditionals, loops, and handlers. You will learn how to control the flow of your playbooks using conditionals, perform repetitive tasks with loops, and trigger actions automatically with handlers. This module will help you write smarter, more flexible Ansible playbooks.

What's included

7 videos1 assignment

In this module, we’ll explore Ansible roles, a powerful feature for structuring your playbooks and automation tasks. You’ll learn how to create and manage roles to improve the maintainability of your playbooks. This module also covers role dependencies and how to work with variables and defaults in roles.

What's included

10 videos1 assignment

In this module, we’ll introduce Ansible Collections, which allow you to extend the functionality of Ansible. You will learn how to install and manage collections, as well as how to incorporate them into your playbooks. This section will provide you with the tools to expand your automation tasks by leveraging community-contributed and custom collections.

What's included

7 videos1 assignment

In this module, we will explore Ansible Galaxy, a platform for sharing and discovering Ansible roles and collections. You’ll learn how to use Galaxy to find existing automation resources, as well as how to contribute your own roles. This section is key for leveraging the power of the Ansible community to enhance your workflows.

What's included

6 videos1 assignment

In this module, we will introduce Ansible Vault, a tool for encrypting sensitive information in your playbooks. You’ll learn how to securely handle passwords, keys, and other sensitive data by encrypting variables and files. This section will equip you with the knowledge to protect your automation tasks and data.

What's included

7 videos1 assignment

In this module, we will focus on troubleshooting Ansible playbooks and automation tasks. You’ll learn how to use tools like --syntax-check, ansible-lint, and debug modules to diagnose and resolve issues. By the end of this section, you’ll be equipped with the troubleshooting skills needed to ensure smooth automation operations.

What's included

9 videos1 assignment

In this module, we will introduce Ansible AWX, a user-friendly web interface for managing Ansible automation. You’ll learn how to install AWX, set it up on Kubernetes, and use it to run tasks and playbooks. This section will give you a new perspective on managing Ansible tasks through an intuitive web interface.

What's included

5 videos1 assignment

In this module, we will summarize everything you’ve learned throughout the course, ensuring you have a solid foundation in Ansible automation. We will also discuss next steps for applying your new skills in real-world environments and explore further learning opportunities in DevOps and automation.

What's included

1 video2 assignments

Instructor

Packt - Course Instructors
Packt
1,299 Courses334,545 learners

Offered by

Packt

Explore more from Software Development

Why people choose Coursera for their career

Felipe M.
Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
Jennifer J.
Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
Larry W.
Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
Chaitanya A.
"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

Frequently asked questions