[vagrant,inventory] add new ubuntu server machine for next step in book
This commit is contained in:
parent
9ed52d9764
commit
d71f081a95
2 changed files with 23 additions and 0 deletions
17
Vagrantfile
vendored
17
Vagrantfile
vendored
|
@ -43,3 +43,20 @@ Vagrant.configure("2") do |config|
|
|||
app.vm.network :forwarded_port, guest: 22, host: 2202, id: 'ssh'
|
||||
end
|
||||
end
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.box = "gusztavvargadr/ubuntu-server"
|
||||
config.ssh.insert_key = false
|
||||
config.vm.synced_folder "." "/vagrant", disabled: true
|
||||
|
||||
config.vm.provider :virtualbox do |v|
|
||||
v.memory = 512
|
||||
v.linked_clone = true
|
||||
end
|
||||
|
||||
config.vm.define "ubu" do |app|
|
||||
app.vm.hostname = "ubu.test"
|
||||
app.vm.network :private_network, ip: "192.168.60.8"
|
||||
app.vm.network :forwarded_port, guest: 22, host: 2203, id: 'ssh'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -31,3 +31,9 @@ debian:
|
|||
deb:
|
||||
ansible_host: 127.0.0.1
|
||||
ansible_ssh_port: 2202
|
||||
|
||||
ubuntu:
|
||||
hosts:
|
||||
ubu:
|
||||
ansible_host: "127.0.0.1"
|
||||
ansible_ssh_port: 2203
|
||||
|
|
Loading…
Add table
Reference in a new issue