Back to Browse

Get Started with Ansible Using Just a Docker Container - (Part 1) - #32

10.3K views
May 2, 2025
11:16

In this video, we will set up Ansible inside a Docker container to easily manage multiple VMs. You’ll learn how to create an inventory file, set up the container with a custom Dockerfile, and automate the workflow with a simple script. This makes managing VMs easy and prepares for real-world automation. *What you will learn* ✓ How to run Ansible inside a Docker container ✓ How to create and use an inventory file to manage multiple VMs ✓ Automate Ansible commands with a simple script *Timestamps* 00:00 - What is Ansible 01:08 - VMs Setup 02:30 - Prepare Inventory File 04:31 - Set Up Docker Container 06:46 - Prepare Docker Compose File 08:16 - Automate the Workflow with a Script *Need the Code* Check out my Github Repository - https://github.com/tech-the-lazy-automator/homelab-automation-series *Resources* Docker Image for Python - https://hub.docker.com/_/python Ansible Package - https://pypi.org/project/ansible/ *Mentioned Video Links* Install Docker - https://youtu.be/D5_7hm2iyT4 Remote SSH from VS code - https://youtu.be/mY6DwYPDtWI Password-less login using SSH - https://youtu.be/YKYw89VaFmU *Or you can watch the entire playlist* HomeLab Automations - https://www.youtube.com/playlist?list=PLLJTdW7UlL5luq8yL306tNbFm8q4BApJK *Need help?* Join the Discord Server - https://discord.gg/EHcn4knGW4 *Connect with me* https://www.facebook.com/techthelazyautomator/ https://www.instagram.com/tech.thelazyautomator/ https://www.linkedin.com/in/tech-the-lazy-automator-58264732b/ https://www.reddit.com/r/TechTheLazyAutomator/ https://twitter.com/TechTheLazyAuto/ #Python #Ansible #Docker

Download

0 formats

No download links available.

Get Started with Ansible Using Just a Docker Container - (Part 1) - #32 | NatokHD