Chapter 1: Ansible For Beginners With Examples


Chapter Goal: Description of the Ansible Technology and how to write and execute your first Ansible Playbook code.


No of pages: 5 0


Sub - Topics


  1. What is Ansible

    Getting Started
  1. Inventory

  1. Playbook

  1. Variables, Fact and Magic Variables
  2. Vault
  3. Conditional and Loop
  4. Handler
  5. Role
  6. Ansible Best Practices

Chapter 2: Install Ansible


Chapter Goal: How to install Ansible in the most common Operating System step by step


No of pages : 20


Sub - Topics:


  1. ansible community vs ansible-core packages
  2. Ansible installation in RedHat Enterprise Linux (RHEL) 8
  3. Ansible installation in Ubuntu 22.04 LTS

  1. Ansible installation in Fedora 36

  • Ansible installation in CentOS 9 Stream

  • Ansible installation in Windows

  • Ansible installation in SUSE SLES (Linux Enterprise Server) 15

    1. Ansible installation with PIP

    Ansible installation in RedHat Enterprise Linux (RHEL) 9


    1. Ansible installation in Amazon Linux 2 (AWS EC2)
    2. Ansible installation in Debian 11

    Chapter 3: Ansible For VMware


    Chapter Goal: How to automate your VMware infrastructure using Ansible code and troubleshoot the most common error messages


    No of pages: 70


    Sub - Topics:


    1. Configure Ansible For VMware

    Configure a Python Virtual Environment for Ansible VMware


      Ansible troubleshooting - VMware f ailed to Import PyVmomi
    1. Ansible troubleshooting - VMware Unknown error while connecting to vCenter or ESXi

    1. Ansible troubleshooting - VMware certificate verify failed connecting to vCenter or ESXi


    1. Create a VMware virtual machine
    2. Deploy a VMware virtual machine from a template

    1. Start a VMware virtual machine

  • Stop a VMware virtual machine

  • Take a VMware virtual machine snapshot

  • Delete a VMware virtual machine snapshot

  • Add a new hard disk to VMware virtual machine

    1. Expand a virtual disk in VMware virtual machine

    1. Gather VMware Hosts information of a cluster

    1. Get VMware virtual machine UUID

    1. Ansible Dynamic Inventory For VMware

    1. Get VMware vSphere Virtual Machine Running Host

    1. Get VMware datastore status

    1. Upload a file to the VMware datastore

    1. Get VMware Guest Tools status

    1. Upgrade VMware Guest Tools

    1. Live Migration of a VMware Virtual Machine using vMotion

    1. Change the boot devices order of a VMware virtual machine


    Chapter 4: Conclusion