Apparently the workaround above does work only for some cases and not for all of them.
Pinged #ansible-devel team daily since last week to review my two possible bugfixes but still without tangible results.
Meanwhile I ended up creating fork of ansible-lint with the patch on it and got the confirmation that this works for us.
This could be used as a temporary workaround: https://review.opendev.org/#/c/689719/3/.pre-commit-config.yaml
Apparently the workaround above does work only for some cases and not for all of them.
Pinged #ansible-devel team daily since last week to review my two possible bugfixes but still without tangible results.
Meanwhile I ended up creating fork of ansible-lint with the patch on it and got the confirmation that this works for us.
This could be used as a temporary workaround: /review. opendev. org/#/c/ 689719/ 3/.pre- commit- config. yaml
https:/