Vagrant VS Ansible

Compare Vagrant vs Ansible and see what are their differences.

Vagrant

Vagrant is a tool for building and distributing development environments. (by hashicorp)

Ansible

Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com. (by ansible)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
Vagrant Ansible
116 391
25,897 61,282
0.5% 0.9%
9.0 9.8
5 days ago about 15 hours ago
Ruby Python
MIT License GNU General Public License v3.0 only
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Vagrant

Posts with mentions or reviews of Vagrant. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-20.
  • How to Enable a Virtual Machine on Your Windows Laptop With Vagrant and Git Bash
    1 project | dev.to | 30 Apr 2024
    Vagrant
  • Ask HN: Please recommend how to manage personal serverss
    4 projects | news.ycombinator.com | 20 Apr 2024
    Take a look at Vagrant! https://www.vagrantup.com/ In my admittedly limited understanding I believe it offers closer to a nix like reproducable rather than repeatable deployments.
  • Software Company HashiCorp Is Weighing a Potential Sale
    4 projects | news.ycombinator.com | 16 Mar 2024
    on the off chance one hasn't been tracking it, there were several "we don't need your stinking BuSL" projects when this drama first started:

    https://github.com/opentofu#why-opentofu (Terraform)

    https://github.com/openbao/openbao#readme (Vault)

    and I know of several attempts at Vagrant <https://github.com/hashicorp/vagrant/forks> but I don't believe one of them has caught traction yet

    There are also some who have talked about an "open Nomad" but since I don't play in that space I can't speak to it

  • Ask HN: Cleanest way to manage Windows OS?
    4 projects | news.ycombinator.com | 22 Feb 2024
    It sounds like you're using Nix as a sort of configuration management solution. CM just isn't worth it for managing a single desktop IMO. It triples the effort for whenever you need to add or remove a package, as you must now add that also to your nix configuration. You're supposed to be able to make that back up in time saved restoring to the next machine, but inevitably the next machine will be different enough that you'll have to edit it all anyway. In the end I just got tired of trying to manage my own machine with infrastructure as code (though in fairness I was using puppet at the time not nix).

    I keep a git repository with all my dot files in it[1]. This seems to work the best. It has a Windows folder as well, and I copy that out whenever I need to set up Windows.

    A lot of people like using WSL but I hate how it hogs on my memory. Hyper-V is a terrible virtualization engine for consumer-grade use cases because it can't thin provision RAM. If I need to use docker, I will spin up a small Linux VM using vagrant[3] with Virtualbox[4] and put Docker on there. Vagrant is an extremely underrated tool in my opinion, particularly in a Windows context.

    I use scoop for packages. Typically I will scoop install msys2 and then pin it so that it doesn't get blown away by the next upgrade.

    Then I basically do all of my development inside of msys2. I can get most things running in there without virtualization. In my case that means sbcl and roswell for common lisp, senpai for irc, and tmux and nvim for sanity. Msys2 uses the pacman package manager and this is good enough.

    All In all, I set up my Windows machine affresh after a while of not using it and it took me about 3 hours. Most of that time was just getting through upgrades though, I felt like it was pretty fast.

    1: https://git.sr.ht/~skin/dotfiles

    2: https://www.msys2.org/

    3: https://www.vagrantup.com/

    4: https://www.virtualbox.org/

  • A Developer's Journal: Simplifying the Twelve-Factor App
    9 projects | dev.to | 3 Dec 2023
    Tools like Docker and Vagrant can be used to allow local environments to mimic production environments.
  • Is there any place where I can download an already configured Virtual machine? For example with Linux Ubuntu or Windows 10 preinstalled?
    1 project | /r/virtualbox | 20 Nov 2023
  • UTM – Virtual Machines for iOS and macOS
    9 projects | news.ycombinator.com | 30 Aug 2023
    There's an open issue [1]. A scripting interface has since been added [2], and updated [3], so there's progress.

    [1] https://github.com/hashicorp/vagrant/issues/12518

  • Vagrant license changed to BUSL-1.1
    1 project | news.ycombinator.com | 10 Aug 2023
  • HashiCorp Adopts Business Source License
    25 projects | news.ycombinator.com | 10 Aug 2023
    Someone should fork and maintain Vagrant with an MPL open source license:

    https://github.com/hashicorp/vagrant

  • Codespaces but open-source, client-only, and unopinionated
    18 projects | news.ycombinator.com | 20 Jun 2023
    https://github.com/hashicorp/vagrant/blob/v2.3.7/CHANGELOG.m... ?

    The changelog lists both improvements and bug fixes and there's even apparently some effort to port it away from ruby: https://github.com/hashicorp/vagrant/blob/v2.3.7/internal/cl...

Ansible

Posts with mentions or reviews of Ansible. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-27.
  • Ansible Basics: Your First HelloWorld Playbook 🚀
    2 projects | dev.to | 27 Apr 2024
    Ansible is an open-source IT automation tool that simplifies application deployment, cloud provisioning, and configuration management across diverse environments. It uses a declarative language to describe the desired state of the system, and then takes the necessary actions to achieve that state. Ansible has become incredibly popular due to its simplicity, agentless architecture, and extensive community support. Document: ansible.com, ansible basics
  • Grant Kubernetes Pods Access to AWS Services Using OpenID Connect
    5 projects | dev.to | 22 Apr 2024
    Ansible v2.16
  • Set up an Automation script with Ansible
    1 project | dev.to | 21 Apr 2024
    Ansible is a tool used to help manage software automation processes, configuration management across machines, deployment as well as remote execution of commands and scripts. In sports, Ansible operates as the coach of your team by providing strategies (playbooks), and actions, and ensuring the smooth execution of tasks across your infrastructure, just like a coach guides and directs players (Servers)during a game.
  • Interesting Uses of Ansible's ternary filter
    3 projects | news.ycombinator.com | 22 Feb 2024
    They support for-if from python, too: https://jinja.palletsprojects.com/en/3.1.x/templates/#loop-f... but I haven't tried the "recursive" keyword to know if ansible supports that. I say "ansible supports that" because they don't just drop jinja2 into ansible and call it a draw, they have a bunch of custom execution integrations: https://github.com/ansible/ansible/blob/v2.16.3/lib/ansible/...
  • The 2024 Web Hosting Report
    37 projects | dev.to | 20 Feb 2024
    To manage a VM, you can use something as simple as just manual actions over SSH, or can use tools like Ansible, Hashicorp's Packer and Terraform or other automations. For an app where there is minimal load and security/reliability concern, VMs are still a great option that provide a lot of value for the buck
  • A Journey to Find an Ultimate Development Environment
    13 projects | dev.to | 2 Feb 2024
    In this article's context, it is simply a tool that provides a declarative way to automate your machine/OS to configure the development machine as you want (install package, modify the configuration, etc). Examples of these tools are Ansible, Puppet, etc.
  • The Director of "Toy Story" Also Drew the BSD Daemon Logo
    1 project | news.ycombinator.com | 17 Jan 2024
    Now we're getting more tangential, but for years, Ansible releases were named for Van Halen songs (see old Changelog here: https://github.com/ansible/ansible/blob/v1.8.4/CHANGELOG.md)
  • Running stateful workloads on Kubernetes with Rook Ceph
    4 projects | dev.to | 26 Dec 2023
    In the lab to follow, we'll quickly provision a 3-node kubeadm cluster (1 master, 2 workers) on the cloud provider of your choice using an automation stack comprised of OpenTofu and Ansible, then deploy Rook Ceph using the official Helm charts and confirm that we are now able to successfully create CSI volume snapshots from PVCs by reusing the MinIO example from our last article.
  • Looking for a way to remote in to K's of raspberry pi's...
    11 projects | /r/sysadmin | 10 Dec 2023
  • ansible builder collections path
    2 projects | /r/ansible | 6 Dec 2023

What are some alternatives?

When comparing Vagrant and Ansible you can also consider the following projects:

Packer - Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.

Cloud-Init - unofficial mirror of Ubuntu's cloud-init

QEMU - Official QEMU mirror. Please see https://www.qemu.org/contribute/ for how to submit changes to QEMU. Pull Requests are ignored. Please only use release tarballs from the QEMU website.

pyinfra - pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers. Fast and scales from one server to thousands.

Capistrano - A deployment automation tool built on Ruby, Rake, and SSH.

Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]

Puppet - Server automation framework and application

Fabric - Simple, Pythonic remote execution and deployment.

BOSH - Cloud Foundry BOSH is an open source tool chain for release engineering, deployment and lifecycle management of large scale distributed services.

cloudinit - Official upstream for the cloud-init: cloud instance initialization

vscode-dev-containers - NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!

(R)?ex - Rex, the friendly automation framework