Skip to main content

2023 | Buch

Ansible for VMware by Examples

A Step-by-Step Guide to Automating Your VMware Infrastructure

insite
SUCHEN

Über dieses Buch

Learn to use the Ansible open source IT automation tool to automate your VMware infrastructure. This book contains all of the obvious and not-so-obvious best practices of Ansible automation. Each lesson summarizes a specific use case for the modern VMware infrastructure and is focused on a single module from the most important parameter, including live demo of code and real-life usage.

You'll configure the Ansible Controller to interact with VMware infrastructure using the “community.VMware” Ansible documentation collection and the appropriate Python libraries. Next, learn how to automate the creation of a virtual machine manually and from a template, start and stop using the shutdown and forced-power off a Virtual Machine, take and delete and snapshot, add a new hard disk and expand a currently attached hard disk, as well as gather information for data centers, clusters, host systems, and virtual machines.

By the end of this book, you'll be well-versed in efficiently maintaining a VMware infrastructure with Ansible Automation. You'll also be able to save time and reduce manual errors using simple human-readable automation technology.

What You'll Learn

Automate your VMware infrastructure using Ansible codeInstall Ansible in operating systems such as RedHat, Ubuntu, Fedora, etc.Write and execute your first Ansible Playbook code Troubleshoot the most common error messagesWho This Book Is For

IT professionals of every industry who would like a jargon-free understanding of Ansible technology, including VMware, Linux, and Windows Systems Administrators, DevOps professionals, thought leaders, and infrastructure-as-code enthusiasts.

Inhaltsverzeichnis

Frontmatter
Chapter 1. Ansible for Beginners with Examples
Abstract
What are the Ansible basic concepts, architecture, and terminology? You are going to do a deep dive into the Ansible jargon and take your first steps toward the best open source automation technology in the market. If you’re completely fresh, this is the foundation of your Ansible journey. You’ll learn the terminology used by automation professionals all around the world. If you already know something about Ansible, I’m sure that you are going to find some valuable information about Ansible automation and some recent changes in the release policies and tools.
Luca Berton
Chapter 2. Installing Ansible
Abstract
It is simple to install most common and modern operating system nowadays. The main requirements for Ansible are only the Python interpreter and some Python libraries to read and format YAML documents and to interact with SSH for Linux/macOS target hosts and WinRM for Windows target hosts. All of this is handled by the operating system package manager so you don’t need to worry about it. Ansible is already included in most recent Linux distributions out of the box. Most of the time, this doesn’t require additional repositories or complex commands. You can install Ansible simply by using the distribution package manager or the Python Package Manager (PIP). After the installation, you start your journey simply typing “ansible” in your favorite terminal. Ansible is able to handle every workload from a simple “ping” module to testing the connection to the target node to a complex automation workflow (also called an Ansible Playbook).
Luca Berton
Chapter 3. Ansible for VMware
Abstract
By now, you probably understand that Ansible is a phenomenal tool for automating system administrator tasks. In this chapter, the key focus is on the VMware infrastructure. I’m going to share with you some day-to-day use cases to save time and reduce errors. In the following pages, you’re going to learn about the most important Ansible modules and plugins to automate your VMware infrastructure. There is code to specifically interact with VMware data centers, clusters, host systems, and virtual machines. By the end of this chapter, you are going to be able to automate mundane activities like spinning up a virtual machine or adding a second hard drive with a few lines of code.
Luca Berton
Chapter 4. Closing Remarks
Abstract
Please let me remind you that Ansible is an open source evolving product so check out the Ansible official website at www.ansible.com for the latest news and updates.
Luca Berton
Backmatter
Metadaten
Titel
Ansible for VMware by Examples
verfasst von
Luca Berton
Copyright-Jahr
2023
Verlag
Apress
Electronic ISBN
978-1-4842-8879-5
Print ISBN
978-1-4842-8878-8
DOI
https://doi.org/10.1007/978-1-4842-8879-5