Linuxfabrik / lfops

LFOps is an Ansible Collection of generic Roles, Playbooks and Plugins for managing Linux-based Cloud Infrastructures.
https://linuxfabrik.ch
The Unlicense
53 stars 13 forks source link

role:mongodb: /bin/sh: /opt/python-venv/pymongo/bin/python3: No such file or directory #114

Closed markuslf closed 1 year ago

markuslf commented 1 year ago
TASK [linuxfabrik.lfops.mongodb : check if host is primary and writable] ****************
Dienstag 21 März 2023  09:02:58 +0100 (0:00:00.063)       0:00:07.284 ********* 
fatal: [094-p-log01]: FAILED! => changed=false 
  module_stderr: |-
    /bin/sh: /opt/python-venv/pymongo/bin/python3: No such file or directory
  module_stdout: ''
  msg: |-
    The module failed to execute correctly, you probably need to set the interpreter.
    See stdout/stderr for the exact error
  rc: 127
NavidSassan commented 1 year ago

did you let the python-venv role run?

markuslf commented 1 year ago

No, just ansible-playbook --inventory myinv linuxfabrik.lfops.setup_graylog_server --tags mongodb

NavidSassan commented 1 year ago

you either have to run the whole playbook, or python_venv directly: ansible-playbook --inventory myinv linuxfabrik.lfops.setup_graylog_server --tags python_venv

markuslf commented 1 year ago

Updated README