Hi
i'm trying to run may first playbook with become_user : cftadmin and i got
this error msg :
fatal: [ANS_IAWGAP01]: FAILED! => {"changed": false, "module_stderr":
"Failed to add the host to the list of known hosts
(/tmp/$USER/ansible/configuration/known_hosts).\r\nSorry, user C405372 is
not
Put the remote sudo inside your command and ignore the Ansible sudo - it
does not work as most people expect.
ansible -m command -a 'sudo ls -l /root' all
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and
is anything we can do? by changing to paramiko etc? our hosting team not
allowing sudo on shells. This is limiting our ability to execute sudo
commands.
Srinivas Kotaru
On Tuesday, 15 September 2015 07:25:38 UTC-7, Brian Coca wrote:
>
> no, sadly ansible needs to be able to run a shell as th
no, sadly ansible needs to be able to run a shell as the commands it
runs are temporary scripts it copies over and not specific commands
that can be listed.
On Tue, Sep 15, 2015 at 12:43 AM, Srinivas Kotaru wrote:
> Hi
>
>
>
> Am having a issue to use ansible in our environment. We use sudo to r
Hi
Am having a issue to use ansible in our environment. We use sudo to run
any commands. We don't use root to login. In fact even hosting team don't
use root account. Every command ( privileged) has to be run as sudo.
Am getting below error while running command with sudo permission