Last active
December 21, 2023 08:44
-
-
Save katzefudder/e40f72405f30dd74e6eea759838a214e to your computer and use it in GitHub Desktop.
Vagrant on Apple Silicon for ansible development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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