Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-foreman module installed but still erroring #52

Open
flyemsafe opened this issue Dec 19, 2016 · 3 comments
Open

python-foreman module installed but still erroring #52

flyemsafe opened this issue Dec 19, 2016 · 3 comments

Comments

@flyemsafe
Copy link

I have python-foreman installed, but yet I'm still getting "python-foreman module is required" error. What am i missing? Thanks!

pip list --format=legacy | grep foreman
python-foreman (0.14.1)

ansible-playbook foreman.yml

PLAY [server01] ***************************************************

TASK [setup] *******************************************************************
ok: [server01]

TASK [Ensure User] *************************************************************
fatal: [server01]: FAILED! => {"changed": false, "failed": true, "msg": "python-foreman module is required. See https://github.com/Nosmoht/python-foreman."}
to retry, use: --limit @/etc/ansible/roles/hci/foreman.retry

PLAY RECAP *********************************************************************
server01 : ok=1 changed=0 unreachable=0 failed=1

@paulcalabro
Copy link

paulcalabro commented Sep 27, 2018

I'm experiencing this issue as well.

@Nosmoht
Copy link
Owner

Nosmoht commented Oct 8, 2018

hi guys, did you execute the task local ?

If not, you must have the module installed on target system.

@Seb-UX
Copy link

Seb-UX commented Dec 19, 2019

Update:
The python used to install the module has been /opt/rh/python27/root/usr/bin/python (the one found in the path of the user), but ansible used /usr/bin/python.

You can try with -e 'ansible_python_interpreter='

Have fun

hi, i'm hit by this error,too.

the python-foreman module is installed on the target system but i still get this error. Is there any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants