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

Running Ansible on NixOS (hopefully simple2anwser newbie qeustion) #3174

Closed
felixx9 opened this issue Feb 10, 2024 · 1 comment
Closed

Running Ansible on NixOS (hopefully simple2anwser newbie qeustion) #3174

felixx9 opened this issue Feb 10, 2024 · 1 comment

Comments

@felixx9
Copy link
Contributor

felixx9 commented Feb 10, 2024

I do prepare and test the workhorse switch from Manjaro to NixOS.
What I cam across and could not solve so far is this missing module error:

ModuleNotFoundError: No module named 'passlib'

Failed to import the required Python library (passlib) on niksos's Python /nix/store/rac8pxbi1vapwrlqzbrkycbyg521djzw-python3-3.11.6/bin/python3.11.

I did add following to my configuration.nix:

environment.systemPackages = with pkgs; [
    ansible
    just
    python311Full
    python311Packages.passlib
  ];

The mentioned path (in error message) exists. But still - the very same error.

I found the flake.nix file, in which the module is mentioned but am completely new to NixOS - so no idea about how to use flakes, so far.

Can anybody point me in the right direction (what to do with this file to be able to run the playbook successfully), please!?

Thx a lot - since it's quite a steep learning curve...

Related: e323ab3, @Naalunth

@felixx9 felixx9 changed the title Running Ansible on NixOS (hopefully simple2anser newbie qeustion) Running Ansible on NixOS (hopefully simple2anwser newbie qeustion) Feb 10, 2024
@felixx9
Copy link
Contributor Author

felixx9 commented Feb 10, 2024

obviously wrong place. Sorry.

@felixx9 felixx9 closed this as completed Feb 10, 2024
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

1 participant