I have a vagrant project, provisioned with ansible.
For ssh settings I use:
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
config.ssh.forward_agent = true
config.ssh.forward_x11 = true
The problem is that I start the VM with GUI
vb.gui = true
have installed with ansible lightdm-gtk-greeter-settings,
but I'm asked for ubuntu's user password instead of the vagrant user.
This is the problem I'm trying to solve.
As a workaround (as I didn't know the ubuntu's user password), I logged into the vm and change it manually. vagrant ssh sudo passwd ubuntu But still I would like to know the secret behind.
Here is my Vagrantfile
https://github.com/valentin-nasta/development-environment/blob/master/Vagrantfile