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
When using import_playbook with a playbook from a collection, ansible-lint reports the following error:
ERROR Failed to find my_namespace.my_collection.playbook playbook.
Issue Type
Bug Report
OS / ENVIRONMENT
ansible-lint --versionansible-lint 24.9.2 using ansible-core:2.16.11 ansible-compat:24.9.1 ruamel-yaml:0.18.6 ruamel-yaml-clib:0.2.8
ansible installation method: pip
ansible-lint installation method: pip
STEPS TO REPRODUCE
Write a playbook that imports a playbook from an installed collection:
---
- name: Import a playbookansible.builtin.import_playbook: my_namespace.my_collection.playbook
Run ansible-lint import_playbook.yml
Desired Behavior
No errors are expected.
Actual Behavior
$ ansible-lint import_playbook.ymlERROR Failed to find my_namespace.my_collection.playbook playbook.Passed: 0 failure(s), 0 warning(s) on 1 files. Last profile that met the validation criteria was 'production'.
$ ls -l ~/.ansible/collections/ansible_collections/my_namespace/my_collection/playbooks/playbook.yml-rw-r--r-- 1 user user 187 окт 9 10:42 /home/user/.ansible/collections/ansible_collections/my_namespace/my_collection/playbooks/playbook.yml
The text was updated successfully, but these errors were encountered:
Parsing import_playbook children has been moved to its own function to
to deal with pylint's too-many-locals violation when cramming everything
into the include_children function.
Parsing import_playbook children has been moved to its own function to
to deal with pylint's too-many-locals violation when cramming everything
into the include_children function.
Summary
When using
import_playbook
with a playbook from a collection,ansible-lint
reports the following error:Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
Write a playbook that imports a playbook from an installed collection:
Run
ansible-lint import_playbook.yml
Desired Behavior
No errors are expected.
Actual Behavior
The text was updated successfully, but these errors were encountered: