Project

General

Profile

Actions

Bug #14745

closed

Errno 2 - No such file or directory

Added by Anonymous about 8 years ago. Updated about 3 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Hi,

im trying out foreman with the ansible plugin you developed. Unfortunatly im getting an error an cannot go past it.

I followed the instructions and edited my ansible.cfg, put the callback file in place etc.

When ever i call "ansible -m setup localhost" i get the following error

[WARNING]: Failure when attempting to use callback plugin (</root/.ansible/plugins/callback_plugins/foreman_callback.CallbackModule object at 0x7f7a836eee90>): [Errno 2] No such file or directory

What im missing or what is wrong configured.

Foreman 1.11
Ansible integration with Foreman Daniel Lobato Garcia 0.3

Actions #1

Updated by Christian Rusa over 7 years ago

I am not sure if you need an answer after 6 months but I had the same problem and stumbled over this.

The "No such file or directory" error relates to the client certificates which default to the following:

FOREMAN_SSL_CERT="/etc/foreman/client_cert.pem" 
FOREMAN_SSL_KEY="/etc/foreman/client_key.pem" 

To me the solution was to set them to an empty value.
I added the following to my .profile

export FOREMAN_URL="https://localhost" 
export FOREMAN_SSL_CERT="" 
export FOREMAN_SSL_KEY="" 
export FOREMAN_SSL_VERIFY="False" 

Of course, your mileage may vary.

Actions #2

Updated by Ondřej Ezr about 3 years ago

  • Status changed from New to Rejected

Closing this, as it is too old and we failed to reproduce this.
Feel free to reopen this if you are still facing this issue.

Actions

Also available in: Atom PDF