How should i define VM made on Vagrant from my host in ansible?
I have just one Vagrant machine with default config: `
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.network "private_network", ip: "55.55.55.55"
and in ssh-config i have port 2222.
When i try from host ssh [email protected]:2222 i can not login (user is created on both), i am not even prompted set password. Also i have same situation in ansible
55.55.55.55 ansible_ssh_port=2222 ansible_ssh_user=vagrant ansible_ssh_private_key_file=~/.ssh/id_rsa
Is possible to do that in this way? I dont want to create two Vagrant VMs and have server/client, i have no idea where i should put my ansible code to have it persistant per server.