Replies: 1 comment 3 replies
-
I tested manually and apparently that is not really a bug as there is no syntax error when the collection is present. I suspect you are running a different version of ansible from command line than the one that is found by ansible-lint. Be sure that you create a Also be sure you do not have extra config files or environment variables that might alter ansible configuration in such way that it make it look for collections in different locations. FYI, the error that you are seeing comes directly from Ansible itself and not from the linter. The linter is just running ansible-playbook --syntax-check as a subprocess. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
When I run ansible-lint, it reports an error on playbooks that import playbooks from collections.
Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
CentOS 7
STEPS TO REPRODUCE
Create a collection with a playbook. Install the collection locally. Create playbook that uses import_playbook from that collection. Run ansible-lint --offline with playbook that imports playbook from collection. ansible-lint fails.
Desired Behavior
ansible-lint to tell me the playbook is fine.
Actual Behavior
The collection playbook does exist on the server. I can run the playbook and it works fine.
Beta Was this translation helpful? Give feedback.
All reactions