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

On Fri, 27 Sep 2019 at 19:58, Dennis Chang <[email protected]> wrote:
>
> Hi John,
>
> [vagrant@centos-01 ~]$ sudo cat /etc/sudoers.d/vagrant
> vagrant        ALL=(ALL)       NOPASSWD: ALL
> [vagrant@centos-01 ~]$
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines - 
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
> those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to a topic in the Google 
> Groups "Vagrant" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/vagrant-up/eQe8kwWqnno/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/vagrant-up/d3b657bd-b295-4a37-b32f-95613afa58cc%40googlegroups.com.

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CAH9u10nWrSQfy9n0nficL%3D49nm2_GBT0RhiEyz%2B-9FMDfP-F-A%40mail.gmail.com.

Reply via email to