unable to ignore external roles when linting playbooks #130
-
We have several playbooks that rely on external roles, which obviously do not live in the same repository as the repo we are linting using github actions. I do not see any way to ignore the role, instead receive 'internal-error: the role 'xxx' was not found'. There is no intent to make these roles available to the github action in the repository. It does seem there is any way to indicate to the linter the roles will be present at run time and to ignore the static check. Sample Playbook:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Not really. You could try to use mocking feature in linter but the results will be questionable. In the end you should ensure that you have the entire code available, it is part of the linting to ensure that. If you cannot do this, probably this action is not for you and you will have to DIY your own way of linting. |
Beta Was this translation helpful? Give feedback.
Not really. You could try to use mocking feature in linter but the results will be questionable. In the end you should ensure that you have the entire code available, it is part of the linting to ensure that.
If you cannot do this, probably this action is not for you and you will have to DIY your own way of linting.