Skip to content

Instantly share code, notes, and snippets.

@katzefudder
Last active December 21, 2023 08:44
Show Gist options
  • Save katzefudder/e40f72405f30dd74e6eea759838a214e to your computer and use it in GitHub Desktop.
Save katzefudder/e40f72405f30dd74e6eea759838a214e to your computer and use it in GitHub Desktop.
Vagrant on Apple Silicon for ansible development
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "centos/7"
config.ssh.insert_key = true
config.vm.network :private_network, ip: "10.0.2.15"
config.vm.provider "qemu" do |qe|
qe.arch = "x86_64"
qe.machine = "q35"
qe.cpu = "qemu64"
qe.net_device = "virtio-net-pci"
end
config.vm.provision "ansible" do |ansible|
ansible.inventory_path = "inventories/testing"
#ansible.verbose = "v"
ansible.limit = "all"
ansible.playbook = "playbook.yml"
ansible.inventory_path = "inventories"
ansible.become = true
ansible.compatibility_mode = "2.0"
ansible.host_key_checking = false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment