You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A global playbook with only import_playbook statements is identified as generic yaml file instead of playbook. Bug was introduced in 6.12.0, previous versions (<6.11.0) are working. Bug does also occur in latest 6.15.0!
$ ansible-lint --versionansible-lint 6.11.0 using ansible 2.14.4
$ ansible-lint site.yml -vvDEBUG Logging initialized to level 10...WARNING Overriding detected file kind 'yaml' with 'playbook' for given positional argument: site.ymlINFO Executing syntax check on site.yml (0.24s)DEBUG Examining site.yml of type playbookDEBUG Examining playbooks/playbook2.yml of type playbookDEBUG Examining playbooks/playbook1.yml of type playbookWARNING Listing 8 violation(s) that are fatal...Failed after min profile: 4 failure(s), 4 warning(s) on 3 files.A new release of ansible-lint is available: 6.11.0 → 6.15.0 Upgrade by running: pip3 install --user --upgrade ansible-lint
Actual Behavior
Running ansible-lint and providing site.yml with Versions >=6.12.0 does not lint the imported playbooks, as the file is identified as a generic yaml file.
$ ansible-lint site.yml -vvDEBUG Logging initialized to level 10...DEBUG Passed 'site.yml' positional argument was identified as generic 'yaml' file kind....Passed with production profile: 0 failure(s), 0 warning(s) on 1 files.
The text was updated successfully, but these errors were encountered:
Summary
A global playbook with only
import_playbook
statements is identified as generic yaml file instead of playbook. Bug was introduced in 6.12.0, previous versions (<6.11.0) are working. Bug does also occur in latest 6.15.0!Issue Type
OS / ENVIRONMENT
ansible-lint 6.12.0 using ansible 2.14.4
STEPS TO REPRODUCE
Both playbooks look like this:
Desired Behavior
Actual Behavior
Running ansible-lint and providing
site.yml
with Versions >=6.12.0 does not lint the imported playbooks, as the file is identified as a generic yaml file.The text was updated successfully, but these errors were encountered: