1
1
ansible_vagrant/Vagrantfile

15 lines
468 B
Ruby
Raw Normal View History

2023-06-27 10:21:05 +02:00
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
2023-06-27 13:11:17 +02:00
#config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
config.vm.network "private_network", ip: "192.168.56.2"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
vb.cpus = 2
end
config.vm.provision "shell", inline: <<-SHELL
yum install mc epel-release httpd net-tools -y
yum update -y --skip-broken
systemctl enable --now httpd
SHELL
2023-06-27 10:21:05 +02:00
end