-
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
Role debops.pki/env fails to resolve after Ansible 2.4 #127
Comments
Hello, I'm afraid that I'm not sure why this happens. The role hasn't been changed much, besides this seems to be an issue with finding the roles themselves, ie. a problem with Ansible configuration. Since you are using a custom playbook, I assume that you installed the roles "manually" somewhere, is the main role named The development of DebOps codebase has shifted to a monorepo, you might look into it to get the latest changes. The standalone roles will at some point be archived on GitHub. |
Hi @drybjed , thanks for the tip. Yes, these are the commands I'm using on the Debian deployment box to prepare the environment to execute Ansible playbooks:
The Ansible Galaxy dependencies do indeed list
On my Mac, the roles as installed by Galaxy are here:
And the contents of
It makes sense that Ansible wouldn't be able to find the I'd be happy to try and migrate to the mono repo version of debops since I haven't released my production infrastructure yet. Thanks again for the help! |
That explains everything, thanks. In essence, Ansible Galaxy backend and handling of roles has changed some time ago to enable support for multi-role repositories, among other things. I played with supporting the new Galaxy a bit in the DebOps monorepo, but the current state of how It's especially puzzling for me, because I only messed around with the DebOps monorepo in the Galaxy database, and I left the older, separate role repositories intact. No idea why, since you install specifically For now, I would suggest that you avoid using |
I'll give the |
Ok I just
Should I now tell Ansible to include the role's mono-repo path via the Thanks again! |
Yes, when you add |
@drybjed ok so I managed to get Ansible to source the debops playbooks from the additional install path, but I now seem to be running into the same issue as debops/debops-tools#117 :(
I also tried adding
My apologies, I'm running out of ideas as to what I could be doing wrong. Any advice is appreciated. Thanks! |
Ok this seems to have done the trick:
Sigh... next time I'll need to think twice before running my playbooks with a later version of Ansible. So I guess I should freeze the version at 2.6. Thanks again for the help! |
Ah, my apologies, as I've just stumbled upon a new error while running the pki role. Apparently, an intermediate step to the role fails due to some kind of network error. In this example, I have four hosts doing the PKI certificate exchange, and in subsequent runs, any other pair might fail with no apparent reason. Here's the failing step's output:
Any feedback or help is appreciated. Thanks! |
Hmm, I'm not sure what might the cause here. You could try by clearing up the |
Hi. Like the title says. I was previously using the reference playbook to perform PKI certificate creation and exchange in a 4 node cluster. So I'm pretty sure my playbook used to work. I currently tried running it under both Ansible 2.4 and Ansible 2.6 on both MacOS and Debian 9 stretch. Both fail with the same error message:
And under Debian:
Upon further inspection of the role's code, it appears as if the
env
subrole is using symlinks to point back to shared parent role file resources (but I'm not fully certain). I also see that the role's codebase is a ew years old in general, so it's also possible that a new Ansible release broke the role's resource resolution strategy.Any help or feedback is appreciated. Thanks for the awesome framework! 👍
The text was updated successfully, but these errors were encountered: