Conversation
We used `when` in `debug` tasks several times. As of now, this is identified as lint. So I took the freedom to move every `debug` that had a `when` into a `block` using the `when`.
|
@widhalmt what do you mean with "this is identified as lint." What is the profit of building blocks including only one task? |
|
@afeefghannam89 In https://github.com/NETWAYS/ansible-collection-elasticstack/actions/runs/22856820147/job/66299296182?pr=419#step:6:1622 it says, you can't have So no: I thought, this might be a nice workaround. Do you see a better option? |
|
I just learned, that newer Ansible versions don't have this specific issue anymore. Seems like I built a workaround for an Ansible bug. |
|
@widhalmt I opened your link. I did not see such error under the changed files in this PR, e.g roles/beats/tasks/beats-security.yml, roles/elasticsearch/tasks/elasticsearch-security.yml |
|
Sorry, the link is broken. This is not a linter rule. But a bug in Ansible 2.13.x . I makes |
|
anisble-core 2.13.x is since a long time EOL I think we should use uptodate Ansible version like => 2.19. 2.18 will be in the next time EOL. I think, offering support to not uptodate Python or Ansible in the collection will brig too much work for us upon the support of the functionality of this collection |
We used
whenindebugtasks several times. As of now, this is identified as lint. So I took the freedom to move everydebugthat had awheninto ablockusing thewhen.