-
Notifications
You must be signed in to change notification settings - Fork 29
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
Fail: No module named debops #104
Comments
It seems that you installed Ansible through Homebrew. Since Homebrew and pip environments are separate, try uninstalling Ansible and installing it through pip, this should let it find the |
That worked. I have seen confusing messages out on different websites and went with recommendation to use brewed ansible instead of pip-ed one. |
This issue should probably be closed.
What could be missing? Obviously it should be a path problem.
|
The clue is in the last few lines:
This role uses some custom lookup plugins which depend on external code provided by the |
As I was saying, I'm using a I was just mentioning that |
Great. In that case, |
OK, thanks for your help, I realise I was using I bumped into another issue during debops.pki install, I'll post it in an independent entry. |
This issue might be due to the project moving to the monorepo which is now used by the scripts, starting with |
Right, I was on 0.5.0, and figured I had to run I mean the debops roles are all in their own repo already aren't they? |
I'm not sure if you are using the project as a whole, or you want to only use specific roles. In any case, DebOps roles in the monorepo are located in If you use the If you only use certain roles, instead of downloading them manually, you can now just clone the DebOps monorepo, and either create symlinks of the DebOps roles to where Ansible can find them (for example |
I now understand what you mean. In fact, my original idea was to use only a couple of roles from the project only (which I stumbled upon while searching galaxy for some roles). Then I got interested in this already robust project, and started to think I could use it as a base and build on it rather than to build my own server base. It looks great, but to be able to use it for my own servers, I need to make it mine somehow, and to get to know the structure and scripts well enough that I understand to a time good extend how the server is setup. Quite some work to be done, but eh, I'm sure I'll learn a lot on the way. Need to find the time though... |
You can read the reasons and discussion behind the DebOps monorepo in the DebOps mailing list archives. It spans a couple of months, starting from August 2017, the "RFC" thread. DebOps was meant to be used as a "base" for your own infrastructure, so good call I guess. :-) With the monorepo, you can now keep your changes in a separate branch and rebase them on top of 'master' when any new changes show up. Or, in the future, you will be able to easily select a version of DebOps you want to stick with and use that. |
Hi,
Running
debops
on a new hosthost1
results in failure ofdebops.pki
.Any idea what causes error of out of box run?
Ansible has been installed using homebrew on an osx box. The
PYTHONPATH
had to be added. DueNo module named ansible
error. This error sounds similar, however, I don't see any python modules nameddebops
in/usr/local/Cellar
or other locations.The text was updated successfully, but these errors were encountered: