Автор: Luca Berton
Издательство: Apress
Год: 2023
Страниц: 204
Язык: английский
Формат: epub (true)
Размер: 10.2 MB
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.
Using a Python virtual environment is a convenient way to use the Ansible for VMware resources without interfering with your operating system. It’s very useful when you want to use the latest releases not yet available as a package or a specific version of the resources. It’s also a nice way to maintain the community.vmware Ansible collection and the related Python libraries’ dependencies without interfering with your operating system. A Python virtual environment is a confined space created by Python where you can use a specific version of the Python libraries and resources. Configure your Python virtual environment for Ansible VMware community.vmware collection to use the latest releases of Python with the latest pyVmomi and VMware vSphere Automation SDK for Python libraries. This initial configuration is sometimes a roadblock for some VMware users to start using Ansible.
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 code
Install Ansible in operating systems such as RedHat, Ubuntu, Fedora, etc.
Write and execute your first Ansible Playbook code
Troubleshoot the most common error messages
What Is In This Book?
This book provides in-depth content on the following topics:
• The Ansible code language for beginners and experienced users via examples
• Ansible installation on the most common operating systems
• Troubleshooting of common errors
• Information on the latest releases of Ansible and ansible-core packages
• Ansible for VMware infrastructure code snippets and examples
Who This Book Is For
This book is designed for IT professionals in the information technology industry who would like a jargon-free understanding of Ansible technology for automating a VMware infrastructure. This book offers systems administrators, developers, DevOps, decision makers, and thought leaders a guideline about implementing Infrastructure-as-Code in your VMware infrastructure. This book is designed for beginners of Ansible technology and is a great companion to intermediate and expert levels to the state-of-the-art of the Ansible platform.
The already experienced Ansible users are going to love the unique, specific code samples and examples for the Ansible for VMware infrastructure.
You are going to learn how to save time and avoid human errors by efficiently automating your VMware infrastructure using the Ansible open source IT automation technology enabling IaC for DevOps methodologies.
You can read this book with two different mindsets: development and operations. Both mindsets are going to love the practical approach of code snippets and code nutshells to easily apply to your day-to-day journey and challenges.
Скачать Ansible for VMware by Examples: A Step-by-Step Guide to Automating Your VMware Infrastructure