user is not allowed to execute '/bin/sh -c echo BECOME-SUCCESS

996 views
Skip to first unread message

Riahi Mohamed-Amine

unread,
Sep 28, 2018, 6:57:40 PM9/28/18
to Ansible Project
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 allowed to execute '/bin/sh -c echo BECOME-SUCCESS-yzuuugnflqcoylvtkjanapdugeokgrat; /usr/bin/python' as cftadmin on iawgap01.\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}

i put pipeline = True in ssh section :

ssh_args = -o GSSAPIAuthentication=yes -o UserKnownHostsFile=/tmp/$USER/ansible/configuration/known_hosts
scp_if_ssh=True
pipelining = true

can someone help me please ?

Brian Coca

unread,
Oct 11, 2018, 3:05:34 PM10/11/18
to Ansible Project
Reply all
Reply to author
Forward
0 new messages