-
Book Overview & Buying
-
Table Of Contents
Ansible and Ansible-Playbooks for Automation
By :
Ansible and Ansible-Playbooks for Automation
By:
Overview of this book
Ansible is a powerful automation tool used for configuring and managing systems. It simplifies infrastructure management through declarative, agentless, and idempotent playbooks, ensuring efficient and consistent operations across diverse environments.
This course begins with an introduction to Ansible and its core versus community versions, followed by environment setup, ad-hoc commands, and Playbooks. We will delve into variables, conditionals, loops, tags, handlers, and error handling, gaining proficiency in efficient task execution. Privilege escalation, package installation, and logging are explored, along with task reusability techniques. The course delves into Ansible and systemd facts and works with multiple environments through inventory files. Advanced options such as remote_src, delegate_to, and run_once are thoroughly explained, providing cutting-edge insights. Hands-on practice makes it ideal for those seeking to optimize their infrastructure management skills using Ansible.
Upon completion of the course, we will have gained mastery over the automation tool to efficiently manage infrastructure and streamline operations. We will understand core concepts, ad-hoc commands, and sophisticated Playbooks. With knowledge of variables, conditionals, loops, tags, handlers, and error handling, you can optimize task execution.
Table of Contents (36 chapters)
Environment Setup
Ad-Hoc Commands with Modules
Ansible Ad-Hoc Command to Work with Files
Installing Packages on Different OS Families
Executing Ansible Ad-Hoc Commands on Ansible Controller Node or on Localhost
Understanding the Output of Ansible Ad-Hoc Commands Output
Executing Ansible Ad-Hoc Commands with Your User ID and Password
Ansible Inventory File(s)
Ansible Configuration File(s)
Shell Scripts with Ansible Ad-Hoc Commands
Ansible Facts
Introduction to Playbooks
Basic Concepts to Develop Playbooks
Registered and setfacts Variables
Operations on Variables
Conditional Statements
Ansible Playbooks to Practice on Basic Concepts
Ansible Facts (Default Facts) and Systemd Facts
Usage of become and become_user
Installing Packages | Task Reusability with import_tasks and include_tasks
Usage of Tags to Execute Required Tasks
Error Handling
Usage of remote_src , deletegate_to, and run_once Options for Ansible Playbooks
Simple Real-Time Ansible Playbook
Loops for Ansible Playbooks
Working with Templates
Introduction to Plugin
Working with Third-Party or Ansible Community Collections or Modules
Ansible Dynamic Inventory with Plugins
Ansible Roles
Ansible Vault
Ansible Project Setup for Real Time to Work with Servers