-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Issue
I'm trying to integrate bitwarden ansible into my playbooks.
https://bitwarden.com/help/ansible-integration/
i have a local ansible setup, which works just fine. But when i try to run it with semaphore, it doesn't work.
semaphore: v2.15.4-8e8d81c-1753268793
installed with helm
deployed on a microk8s cluster.
when i add "bitwarden-sdk" as dependency to requirements.txt
and mount this file to /etc/semaphore/requirements.txt
, semaphore recognizes the change and does some stuff:
Defaulted container "semaphore" out of: semaphore, admin (init)
Installing additional python dependencies
Collecting bitwarden-sdk (from -r /etc/semaphore/requirements.txt (line 1))
Downloading bitwarden_sdk-1.0.0.tar.gz (374 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
but it hangs in the last step and after some time the container crashes and i don't see any relevant log messages, only this: command terminated with exit code 137
Unfortunately, i'm not a python expert and i don't really know where to look for some additional information.
When i remove the volume mount to requirements.txt
everything works as expected:
Defaulted container "semaphore" out of: semaphore, admin (init)
No additional python dependencies to install
Starting semaphore server
Loading config
Validating config
BoltDB /var/lib/semaphore/database.boltdb
Tmp Path (projects home) /tmp/semaphore
Semaphore v2.15.4-8e8d81c-1753268793
Interface
Port 3000
Server is running
i suppose, it has something to do, that bitwarden is written in rust and is installable on linux, but semaphore container is a golang (even alpine) container. but i cannot confirm that.
Impact
Docker
Installation method
Docker
Database
BoltDB
Browser
Firefox
Semaphore Version
v2.15.4-8e8d81c-1753268793
Ansible Version
Logs & errors
Defaulted container "semaphore" out of: semaphore, admin (init)
Installing additional python dependencies
Collecting bitwarden-sdk (from -r /etc/semaphore/requirements.txt (line 1))
Downloading bitwarden_sdk-1.0.0.tar.gz (374 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Manual installation - system information
No response
Configuration
No response
Additional information
Adding the bitwarden.secrets
collection seems not to be the problem. i just get this in the playbook logs:
msg: 'The bitwarden.secrets.lookup plugin requires the following python modules: ''bitwarden-sdk''.'