Today: June 13, 2024 9:19 am
A collection of Software and Cloud patterns with a focus on the Enterprise

Deploy MongoDB using Ansible

I’ve recently had some people ask how I deploy MongoDB. For a while I used their excellent online tool to deploy and monitor my clusters. Unfortunately they changed direction and I couldn’t afford their new tools, so I turned to Ansible.

In order more easily share the process, I posted a simple example that you can run locally using Vagrant to deploy MongoDB using Ansible.

As soon as you finish running the Ansible script, you can immediately connect to MongoDB and start working with Data.


If you’re looking to learn more about MongoDB, checkout the videos I published with PackT Publishing on end to end MongoDB.


  1. Daniel, great post. I just published something very similar – but without Vagrant and also takes a different approach. I talk about depoying MongoDB to servers via YUM through ansible. Thought your readers might appreciate a different slant. Here’s the link: Cheers!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.