Running playbook role in Foreman 1.15.6 / ansible pluging 1.4.5 / ansible 2.4.1 return an error

Hi,

Running a playbook in WebGUI Foreman return an error but work in shell

[WARNING]: Unable to set correct type for configuration entry: DEFAULT_LOCAL_TMP

PLAY [all] *********************************************************************

TASK [Gathering Facts] ********************************************************* An exception occurred during task execution. To see the full traceback, use -vvv. The error was: OSError: [Errno 13] Permission denied: '~' fatal: [sergeylab01.intra.sepaq.com]: FAILED! => {"failed": true, "msg": "Unexpected failure during module execution.", "stdout": ""} to retry, use: --limit @/tmp/d20171205-29739-1syu1wj/foreman-playbook-4d580b6c-738d-4297-9da6-8a5a8e980c95.retry

PLAY RECAP ********************************************************************* sergeylab01.intra.sepaq.com : ok=0 changed=0 unreachable=0 failed=1

OSError : Permission denied so maybe the user that run the playbook in the WebGUI isn't allow to connect to the remote host but where can I fix that.

Thanks

Daniel
Thanks it solved the issue ...


··· Le mardi 5 décembre 2017 12:40:54 UTC-5, dan...@djj-consultants.com a écrit :

Hi,

Running a playbook in WebGUI Foreman return an error but work in shell

[WARNING]: Unable to set correct type for configuration entry:
DEFAULT_LOCAL_TMP

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: OSError: [Errno 13] Permission denied: '~'
fatal: [sergeylab01.intra.sepaq.com]: FAILED! => {"failed": true, "msg": "Unexpected failure during module execution.", "stdout": ""}
to retry, use: --limit @/tmp/d20171205-29739-1syu1wj/foreman-playbook-4d580b6c-738d-4297-9da6-8a5a8e980c95.retry

PLAY RECAP *********************************************************************sergeylab01.intra.sepaq.com : ok=0 changed=0 unreachable=0 failed=1

OSError : Permission denied so maybe the user that run the playbook in the
WebGUI isn't allow to connect to the remote host but where can I fix that.

Thanks

Daniel

Hi,
the error seems like missing permissions to access something on a file system to me. Could you take a look what permissions does the /usr/share/foreman/.ansible have? If it is missing, try:

sudo mkdir -p /usr/share/foreman/.ansible
sudo chown foreman:foreman /usr/share/foreman/.ansible

You can configure the user that Ansible uses to connect to the target system under Settings -> Ansible.

Hope this helps,
O.


··· On Tue, Dec 5, 2017 at 4:50 PM, <daniel@djj-consultants.com> wrote:

Hi,

Running a playbook in WebGUI Foreman return an error but work in shell

[WARNING]: Unable to set correct type for configuration entry:
DEFAULT_LOCAL_TMP

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: OSError: [Errno 13] Permission denied: '~'
fatal: [sergeylab01.intra.sepaq.com]: FAILED! => {"failed": true, "msg": "Unexpected failure during module execution.", "stdout": ""}
to retry, use: --limit @/tmp/d20171205-29739-1syu1wj/foreman-playbook-4d580b6c-738d-4297-9da6-8a5a8e980c95.retry

PLAY RECAP *********************************************************************sergeylab01.intra.sepaq.com : ok=0 changed=0 unreachable=0 failed=1

OSError : Permission denied so maybe the user that run the playbook in the
WebGUI isn't allow to connect to the remote host but where can I fix that.

Thanks

Daniel

--
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.