From c2c4a3a09b1a5068c62a96c4d047ad7832263dc4 Mon Sep 17 00:00:00 2001 From: Lenoctambule <106790775+lenoctambule@users.noreply.github.com> Date: Thu, 2 Apr 2026 17:24:38 +0200 Subject: [PATCH] feat: local test vm to use private_net --- Vagrantfile | 3 +-- inventory/local.yml | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index e3b569c..27773ba 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,7 +1,6 @@ Vagrant.configure("2") do |config| config.vm.box = "bento/ubuntu-24.04" - config.vm.network "forwarded_port", guest: 80, host: 8080 - config.vm.network "forwarded_port", guest: 443, host: 4443 + config.vm.network "private_network", ip: "192.168.56.110" config.vm.provision "shell" do |s| ssh_pub_key = File.readlines("/home/rralambo/.ssh/id_rsa.pub").first.strip s.inline = <<-SHELL diff --git a/inventory/local.yml b/inventory/local.yml index 49ccbc6..2f9e092 100644 --- a/inventory/local.yml +++ b/inventory/local.yml @@ -1,5 +1,5 @@ hosts: hosts: - 127.0.0.1: - ansible_port: 2222 + 192.168.56.110: + ansible_port: 22 ansible_user: vagrant \ No newline at end of file