Linux serverNETWORK ADMINISTRATIONSredhat

Automating Virtual Machines with Ansible

Automating virtual machines is a great way to reduce the amount of time spent with point and click activities managing your virtual infrastructure. Using an automation tool like Ansible, we can automate processes such as installing Windows features and components, changing registry keys, applying updates, configuring Linux packages and updates, setting network configuration, and even in bootstrapping environments that have yet to have network connectivity configured.

Subscribe to the channel: https://www.youtube.com/channel/UCrxcWtpd1IGHG9RbD_9380A?sub_confirmation=1

My blog: https://www.virtualizationhowto.com

_____________________________________________________

Social Media: https://twitter.com/vspinmaster
LinkedIn: https://www.linkedin.com/in/brandon-lee-vht/
Github: https://github.com/brandonleegit

Introduction – 0:00
What is Ansible? – 0:35
An overview of my Ansible environment – 1:04
Looking at the Ansible folders and files for virtual machine automation – 2:39
The inventory.yml file – 3:10
The group vars configuration – 4:13
Ansible playbook tasks – 5:15
Running your Ansible playbook – 5:58
Verifying changes have been made in Windows from the Ansible playbook – 7:20
Concluding thoughts about Ansible for automation – 7:46

Deploying Ansible in a Docker container:

https://4sysops.com/archives/how-to-deploy-ansible-inside-a-docker-container/

Detailed Ansible posts and howtos I have written:

https://www.virtualizationhowto.com/2021/02/automated-vmsa-2021-002-esxi-workaround-with-ansible/
https://www.virtualizationhowto.com/2021/01/ansible-hashicorp-vault-storing-vcenter-password/
https://www.virtualizationhowto.com/2021/01/ansible-provisioning-vmware-with-vmware_guest-example/
https://www.virtualizationhowto.com/2020/07/ansible-deploy-multiple-vm-from-template-vmware/

source

by VirtualizationHowto

redhat openstack

4 thoughts on “Automating Virtual Machines with Ansible

  • Multiple VM question – could the new Mac Studio run 20 VM's simultaneously or maybe more? Thank you.

  • I suggest using ssh to manage Windows with Ansible; it simplifies everything a lot

  • Hi,

    Can you please explain how to write an ansible playbook in a simple way? It's a bit confusing regarding spaces & hypens. I think it's called indentation. In terraform as well its used spaces curly brackets etc,, I am not from a programming background. Please, it's a request.

  • any video on deploying/installing/configuring Windows Server Essentials 2022 ???

Comments are closed.