correct dennis that is how you do passwordless sudo...
just to confirm before someone else replies to thread or emails me
directly, telling me to google sudoers or passwordless, this is my
current configuration for vagrant and everything works as expected.
host$ vagrant init ubuntu/bionic64
host$ vagrant ssh
box$ sudo cat /etc/sudoers.d/vagrant
vagrant ALL=(ALL) NOPASSWD:ALL
box $
EVERYTHING WORKS AS EXPECTED
my issue is when packer, calls vagrant which executes ansible. I get
"sudo: a password is required"
so what I'm trying to understand is the different between how vagrant
and packer work. why vagrant/ansible works and is passwordless but
packer/vagrant/ansible is asking for a password when using the same
source vagrant box and same ansible playbook.
John
> To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/d3b657bd-b295-4a37-b32f-95613afa58cc%40googlegroups.com.