DEV Community

Cover image for Using Containers for Ansible Development

Using Containers for Ansible Development

Josh Duffney on January 07, 2020

Table Of Contents Life Before Containers Introducing the Operations Box Why Use a Container Building a Docker Container Image ...
Collapse
 
jptoto profile image
JP Toto

This is fantastic, Josh. EXCELLENT intro for folks who are new to this. If I didn't already know it, this would have made it click for me. Well done.

Collapse
 
joshduffney profile image
Josh Duffney CloudSkills.io

That was exactly my intent with writing it. It took me far too long to figure it out and to find something that made it click. I wanted to shorten that learning curve for others. I really appreciate your comment, thank you JP!

Collapse
 
iopsthecloud_43 profile image
Renaud

Hi Josh

You're docker image seems to run in god mode (root). So when you mount local path don't you have issues with written files ? (owned by uid 0)

Cheers,
Renaud

Collapse
 
joshduffney profile image
Josh Duffney CloudSkills.io

Hi Renaud,

I appreciate the comment. I haven't run into any issues modifying the files. I can modify them in VS code locally and by using vi inside the container just fine. I am using a mac and not a windows OS with WSL. I'm not sure if that makes a difference or not.

Thanks!

Collapse
 
changezkhan profile image
Sohan Tirpude

Thanks and appreciate for the tutorial, Josh. Is there a way we can simulate the whole network with using just containers and then using Ansible manage those containers?