Добавить Vagrantfile
This commit is contained in:
15
Vagrantfile
vendored
Normal file
15
Vagrantfile
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
Vagrant.configure(2) do |config|
|
||||||
|
config.vm.define "ubuntu" do |srv|
|
||||||
|
srv.vm.box = "ubuntu/jammy64"
|
||||||
|
srv.vm.hostname = "ubuntu"
|
||||||
|
srv.vm.network(:forwarded_port, guest: 8080, host: 8080, host_ip: "127.0.0.1")
|
||||||
|
srv.vm.provider "virtualbox" do |vb|
|
||||||
|
vb.memory = 512
|
||||||
|
vb.cpus = 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
config.vm.provision "ansible" do |ansible|
|
||||||
|
ansible.playbook = "install_nginx.yml"
|
||||||
|
ansible.become = "true"
|
||||||
|
end
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user