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
duplicated role dependencies don't get executed #12108
Comments
Hi @thegiantbeast, what version of Ansible are you running? Most of these kinds of issues have been resolved in 2.0 (the current devel branch). If you're running 1.9.x or earlier, you may want to test this against the devel branch to see if it's still a problem. |
Hi @jimi-c, I've just used the latest version (HEAD) and it still happens. Also I've also found (on 2.0) that in the inventories I can't define the host like:
I had to use:
Is this a "new" behaviour? Meaning, it's not possible to define the user like the first example? |
@thegiantbeast that's odd, the inventory parsing code has hardly been touched in 2.0, unless that parsing was happening somewhere else. In regards to your other problem, I believe the issue is you're putting the |
That's strange. @jimi-c is that a form we really want to support? (Note that ansible in this case will have no idea that I don't understand why it works for me and not @thegiantbeast though. |
@jimi-c I've changed the @amegianeg I think I found why, but will give more detail tomorrow, but it seems the problem is not at the ssh connection. |
@thegiantbeast no, not currently, the allow_duplicates setting is not inherited. Since this is resolved for you, I'll go ahead and close this now. If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:
Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved. Thank you! |
@thegiantbeast regarding the user@host, I'm not inclined to consider that a bug, as we've never really supported that and it's only working by accident in older versions. As we typically include the Thanks! |
@jimi-c yep, that's fine. I was just confirming if it was an expected behaviour or not, since I noticed the difference between the versions. Thanks for all the help. |
Hi,
I've made a very basic gist to demonstrate the current issue that I'm having.
https://gist.github.com/thegiantbeast/90efb8cb1a08cdef8c0b
The problem is that
{ role: installVersion, pkgVersion: "{{ currentVersion }}" }
is only executed once, although thecurrentVersion
keeps changing between executions (check output).I believe this is related with what I've seen people mention as 'signature', because the task content/variables never change between them, only the actual variables content.
I even tried with
allow_duplicates: true
beforedependencies:
but it didn't work either.This might be related with #9578 and #11707 as well, but I can't confirm if that's the case.
The current workaround that I've found for this is to add an "extra" (read: never used) variable that changes between the execution "blocks". Example:
But this is not scalable if you have a "block" with 10 or more roles.
Has anyone ever saw this issue?
Not 100% sure if this is a bug or an expected behaviour, and if it's an expected behaviour, what's the best way to do implement (other than adding an extra variable)?
The text was updated successfully, but these errors were encountered: