infra-vagrant-host/vagrant/Vagrantfile

24 lines
559 B
Text
Raw Permalink Normal View History

2023-02-17 14:48:29 +00:00
Vagrant.configure("2") do |config|
config.vm.box = 'debian/bullseye64'
config.vm.provider 'libvirt' do |domain|
domain.memory = 8000
domain.nested = true
domain.cpus = 2
end
config.vm.provision 'shell', inline: <<-MARK
apt-get update
apt-get install -y python3
MARK
config.vm.provision 'shell', inline: 'echo "SUCCESS"'
config.vm.provision 'ansible', after: :all do |ansible|
ansible.limit = 'all'
ansible.playbook = '../ansible/install.yml'
# ansible.inventory_path = '../inventories/vagrant.ini'
end
end