Booking options
£74.99
£74.99
On-Demand course
2 hours 33 minutes
All levels
Unlock the power of Ansible in DevOps with this in-depth video course. From beginner to expert, this course covers everything you need to know about Ansible, accompanied by hands-on exercises that you can practice right in your browser. No prior experience needed.
In the world of DevOps, Ansible is the game-changer, streamlining automation and making complex tasks a breeze. This course is your gateway to becoming an Ansible expert. You'll begin with the fundamentals, mastering Ansible's configuration and YAML syntax. Then, explore Ansible inventory and variables. Dive into creating playbooks, applying conditionals, and harnessing loops. Learn about Ansible modules and plugins to automate tasks efficiently. As you progress, discover Ansible handlers, roles, and collections, all essential for managing complex configurations. Advanced topics like templating using Jinja2 templates are covered in detail. The course culminates with hands-on appendices, guiding you through setting up your lab environment to practice and apply what you've learned. Whether you're new to DevOps or looking to enhance your automation skills, this course equips you with the knowledge and practical experience you need.
Master Ansible basics and its role in DevOps
Explore YAML for configuration
Create Ansible Inventory Files and comprehend their importance in Ansible automation.
Learn all about Ansible Variables, Modules, and Playbooks
Implement conditionals and loops within Ansible Playbooks
Automate the provisioning and deployment of web servers
Ideal for System Administrators, Cloud Infrastructure Engineers, and Automation Engineers, this course is also beginner-friendly for those new to automation, even without coding experience. Whether you're looking to streamline system management, optimize cloud infrastructure, or explore automation's potential, this course offers a versatile and accessible learning opportunity for you.
Basic Linux knowledge is essential for understanding the course, and having a Linux system, though not mandatory, will enrich your learning.
This course is thoughtfully structured, offering a well-rounded blend of theory and hands-on practice. You'll gain a comprehensive understanding of the concepts while also enjoying access to interactive hands-on labs that provide a practical and immersive learning experience, allowing you to implement your newfound knowledge effectively.
Tailored for Ansible novices, offering a gentle intro to automation. * Hands-on tasks for direct, browser-based reinforcement of Ansible understanding. * Gain proficiency in provisioning and deploying web servers, applying knowledge to real-world scenarios
https://github.com/PacktPublishing/Ansible-for-the-Absolute-Beginner-Hands-On-DevOps
Mumshad, an IT Solutions Architect, specializes in Cloud Native Computing, Automation, and DevOps. As the founder of KodeKloud, a Certified Kubernetes Training Partner, he's deeply passionate about technology and education. His teaching philosophy revolves around the belief that the best way to learn is through hands-on experience and an enjoyable approach. Mumshad has authored multiple courses on DevOps, Cloud, and Automation, emphasizing interactive, hands-on learning experiences. KodeKloud, an online training institution, is dedicated to delivering top-tier, practical training in DevOps and Automation Technologies, including Docker, Kubernetes, OpenShift, Ansible, Chef, Puppet, and more. With a global student base of over 500,000, KodeKloud's courses provide engaging and interactive ways to learn new technology, making the learning process both enjoyable and insightful.
1. Introduction
In this section, you'll meet your instructor. You'll also get an overview of the course structure, which includes engaging lectures, hands-on exercises, and real-world project work. This section aims to equip absolute beginners with the foundational knowledge and skills needed to get started with Ansible.
1. Introduction Get a warm welcome from your instructor, Mumshad Mahamath, a DevOps trainer with extensive industry experience. Discover how this course simplifies complex concepts using animations and illustrations, provides hands-on exercises in a browser-based lab environment, and empowers you to work on real-world projects. |
2. Introduction to Ansible Explore what Ansible is and how it can revolutionize IT automation. Learn how Ansible simplifies repetitive tasks, even for those without coding skills. Understand the power of Ansible playbooks and the flexibility it offers for automation across different environments. |
3. A Quick Reminder Receive a friendly reminder about the importance of focusing on the course's labs and videos to maximize your learning experience. |
2. Configuration and Basic Concepts
This section of this course delves into the essential aspects of Ansible, starting with an exploration of Ansible's configuration files. This section lays the groundwork for your practical use of Ansible and YAML.
1. Introduction to Ansible Configuration Files Uncover the intricacies of Ansible configuration files in this video. Learn about the default behavior of Ansible, the structure of configuration files, and how to override parameters to tailor Ansible to your specific needs. |
2. Introduction to YAML Get introduced to YAML, the language that powers Ansible playbooks. Discover how YAML represents data through key-value pairs, lists, and dictionaries, with a focus on correct spacing and data organization. Understand when and how to use dictionaries, lists, and lists of dictionaries effectively. |
3. Accessing the labs Learn how to access the labs on Kodecloud, providing you with a practical environment to apply your Ansible knowledge. This video ensures you can effectively practice what you've learned in the course labs. |
3. Ansible Inventory
This section focuses on configuring and working with inventories in Ansible. You'll understand how Ansible connects to multiple systems simultaneously using SSH for Linux and PowerShell remoting for Windows, making it an agentless automation tool. This section explores different inventory formats, highlighting INI and YAML formats. It also explains how to group and create parent-child relationships in inventories, allowing you to efficiently manage and operate on a set of servers.
1. Ansible Inventory Discover the significance of Ansible inventory in this video. Learn how Ansible connects to target systems using SSH and how inventory files store essential information about those systems. You'll explore the INI-like format of inventory files, learn about parameters like ansible_host, ansible_port, and more, and understand the basics of defining target systems for Ansible. |
2. Inventory Formats Dive into the different inventory formats Ansible supports, INI and YAML. Understand how to choose the right format for your projects based on complexity and flexibility. Just like organizations choose the right organizational chart for their operations, selecting the correct inventory format is crucial to managing your IT infrastructure efficiently. |
3. Grouping and Parent-Child Relationships This video introduces Ansible's grouping and parent-child relationship features, allowing you to categorize servers based on their roles, locations, or other criteria. Learn how to create common labels or groups for efficient management and operations, ensuring that tasks are applied uniformly to all servers in a group. |
4. Ansible Variables
In this section, you'll gain a comprehensive understanding of how to work with variables and facts in Ansible. You'll learn to define and use variables, explore variable types, and understand their precedence. Additionally, you'll delve into variable scoping and discover the power of magic variables and Ansible facts in managing server configurations.
1. Ansible Variables In this section, we explore Ansible variables, which are essential for customizing tasks and playbooks. Learn how to define and use variables efficiently for server configurations. |
3. Registering Variables and Variable Precedence Dive into variable precedence in Ansible and understand how variables defined at different levels impact your playbooks. Learn about registering variables and using them to capture task outputs. |
4. Variable Scoping Delve into variable scoping in Ansible, which dictates where and how variables can be accessed. Explore host scope, play scope, and global variables, and understand how they affect your playbooks. |
5. Magic Variables Uncover Ansible's magic variables, such as hostvars, groups, and group_names. These variables allow you to access information about other hosts and groups within your playbooks. |
6. Ansible Facts Learn about Ansible facts, which provide detailed information about target hosts. See how to gather facts, access the data using the ansible_facts variable, and control fact gathering in your playbooks. |
5. Ansible Playbooks
In this section, you will delve into advanced Ansible concepts, including conditionals, loops, and verification techniques. You'll learn how to apply these concepts to enhance your Ansible playbooks.
1. Ansible Playbooks Explore Ansible Playbooks, Ansible's orchestration language, where you define tasks and instructions for Ansible. See how to create and structure playbooks in YAML format. Understand the key components of plays, tasks, hosts, and modules. |
2. Verifying Playbooks Learn the importance of verifying playbooks before running them in a production environment. Discover Ansible's check mode and diff mode to catch and rectify errors, ensuring smooth playbook execution and avoiding unintended issues. |
3. Ansible-lint Introduce Ansible-Lint, a tool for playbook and role linting. It checks for errors, bugs, stylistic issues, and suspicious constructs in your Ansible code, helping ensure consistency and quality across playbooks, roles, and collections. |
4. Conditionals Explore how to use conditionals in Ansible to control the execution of tasks based on specific conditions. Understand how to use facts, variables, and conditional statements to make your playbooks more efficient and flexible. |
5. Ansible Conditionals based on facts, variables, re-use Dive deeper into Ansible conditionals. Learn how to use facts, variables, and conditionals to perform different actions based on the target server's operating system, environment, or specific conditions. See how conditionals can enhance playbook flexibility. |
6. Loops Explore Ansible loops, a powerful feature that allows you to repeat tasks efficiently. Understand how to use loops with arrays of strings and dictionaries. Discover the with_items and loop directives to create loops and iterate over items in your playbooks. |
6. Ansible Modules
This section provides in-depth insights into Ansible modules and plugins, essential components for extending Ansible's functionality and addressing various automation challenges. It discusses the different types of modules and plugins available in Ansible, such as system modules, command modules, file modules, database modules, and more. The section also highlights how Ansible plugins can overcome limitations and expand automation capabilities, especially in complex environments.
1. Ansible Modules This video introduces Ansible modules, categorizing them based on their functionality. It covers various module types, including system modules, command modules, file modules, and database modules. You'll learn how modules help automate actions such as managing system resources, executing commands, working with files, and interacting with databases. |
2. Introduction to Ansible Plugins In this video, you'll explore Ansible plugins and their role in extending Ansible's capabilities. It discusses the use of custom inventory plugins to fetch real-time data from cloud providers, custom module plugins for provisioning resources, and action plugins for load balancer management. |
3. Modules & Plugins Index This video introduces the Ansible Modules and Plugins Index, a valuable resource for finding the right tools to address specific automation needs. It demonstrates how to search for modules and plugins based on keywords, categories, and criteria. The video highlights the detailed documentation provided for each tool, version compatibility, and the collaborative contributions of the Ansible community. |
7. Ansible Handlers, Roles and Collections
This section introduces essential concepts in Ansible, such as handlers, roles, and collections. It highlights the role of handlers in automating tasks like restarting services after configuration changes. We will cover how roles help in organizing and reusing Ansible tasks, making it more efficient and shareable within and beyond your organization. Additionally, it explores the concept of Ansible collections, enabling the integration of specialized functionality into automation workflows.
1. Introduction to Handlers This video introduces the concept of handlers in Ansible. It addresses the challenge of ensuring configuration changes take effect by manually restarting services. Handlers provide an automated solution by associating tasks with specific actions like service restarts. You'll learn how to use handlers to streamline the automation process, reducing manual intervention, and improving infrastructure management. |
2. Ansible Roles In this video, Ansible roles are explained as a way to modularize and organize tasks. Just like assigning roles to individuals in the real world, roles are assigned to servers in Ansible, making them, for example, web servers or database servers. The video highlights the benefits of roles in terms of reusability, best practices, and code organization. |
3. Ansible Collections This video introduces Ansible collections as a way to access specialized automation content. Collections like Network.Cisco and Network.Juniper offer vendor-specific modules and roles tailored for network automation. You'll learn how to install collections, utilize vendor-specific functionalities, and benefit from expanded capabilities, modularity, and simplified distribution of Ansible content. |
8. Advanced Topics
The section provides insight into the role of Jinja 2 in Ansible playbooks, covering variable interpolation, and demonstrates how to use the template module to generate configuration files, emphasizing its relevance in infrastructure and automation tasks.
1. Introduction to Templating This video introduces the concept of templating using Jinja 2. It provides a simple, real-world example of creating customized email invitations for a company's employees. The video explains how templates and variables are fundamental components of templating engines, showcasing how variables can be manipulated with filters. The focus here is on understanding the basics of templating, which is essential for Ansible playbooks and infrastructure management. |
2. Jinja2 Templates for Dynamic Configs - Demo In this video, you'll delve into Ansible's implementation of Jinja 2 templates. It highlights the built-in filters provided by Jinja 2 and introduces Ansible's extensions of these filters, emphasizing their utility in infrastructure tasks. The video guides you through the process of converting a regular file into a Jinja 2 template, explaining how the template module is used to perform variable interpolation. |
9. Appendix
This section covers the practical aspects of setting up an Ansible local environment using Oracle VirtualBox. In this section, you'll learn how to create a lab environment on your laptop from scratch, irrespective of your operating system (Windows, Linux, or macOS). The focus is on using VirtualBox to create a template system based on CentOS and then building Ansible control machines and target machines.
1. Demo - Part 1 - Setup Lab - Install VirtualBox In this video, you will learn how to set up a lab environment for Ansible using Oracle VirtualBox. The demonstration provides a step-by-step guide to install VirtualBox, create a CentOS template system, and establish an Ansible control machine and target machines on your local laptop. This practical setup is crucial for learning and testing Ansible's capabilities. |
2. Demo - Part 2 - Setup Lab - Clone VMs and Install Ansible This video walks you through the process of installing Ansible on your Ansible control machine. You will follow the installation instructions provided by Ansible's official documentation. After installation, you will verify Ansible's presence and perform a connectivity test between the Ansible control machine and target machines. We will also cover SSH key management for secure connectivity, emphasizing best practices for production environments. |