On Wed, Jan 2, 2019, at 8:57 AM, John.1209 wrote:
> I've got ansible setup in a centos 6 & 7 environment.  The Centos 6 hosts 
> all work fine.  The centos 7 hosts work, but I cannot use "become" with 
> centos 7.  It works with Centos 6, and non-root commands work with centos 
> 7.  Here is a snippet from the debug log
> 
[...]
> [MyAccunt@util07 ~]$ ansible TargetHost -a "echo hello" --
> Received 
> exit status from master 1\r\nShared connection to TargetHost closed.\r
> \n",
>    "module_stdout": "sudo: a password is required\r\n",
>    "msg": "MODULE FAILURE",
>    "rc": 1
> }

It's telling you here that sudo is configured to require a password, but none 
is being passed.  Pass -K on the ansible command line to have ansible prompt 
you for it.

> 
> 
> Any ideas why ansible with become fails for CentOS 7 clients?
> 
> TIA
> 

V/r,
James Cassell

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1546877234.2290547.1627811768.322E8321%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to