Nosmoht / ansible-module-foreman

Ansible module to manage configuration of Foreman
49 stars 32 forks source link

python-foreman module installed but still erroring #52

Open flyemsafe opened 7 years ago

flyemsafe commented 7 years ago

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 commented 5 years ago

I'm experiencing this issue as well.

Nosmoht commented 5 years ago

hi guys, did you execute the task local ?

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

Seb-UX commented 4 years ago

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?