From d71f081a95072bf407dafe77c1ca22b2c9cad01e Mon Sep 17 00:00:00 2001 From: bronsen <kontakt+gitcommit@nrrd.de> Date: Mon, 3 Mar 2025 22:54:37 +0100 Subject: [PATCH] [vagrant,inventory] add new ubuntu server machine for next step in book --- Vagrantfile | 17 +++++++++++++++++ hosts.yaml | 6 ++++++ 2 files changed, 23 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index ea60fad..93e1965 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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 diff --git a/hosts.yaml b/hosts.yaml index 4fd70b8..8c332d7 100644 --- a/hosts.yaml +++ b/hosts.yaml @@ -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