Open 4wk- opened 2 months ago
I was able to reproduce this when deleting the community.general
collection from all directories within Ansible's collections_path
. Can you check to see if the collection is installed, and that the collections_path
configuration is set appropriately to find the collection?
Is the linter dependent on the specific ansible that is installed in the system? (we run the linter in CI, which doesn't install ansible)
@leonardgerardatomicmachinescom I believe ansible-lint
will work with versions of ansible
/ ansible-core
that meet the version constraint ansible-core>=2.13.0
. I'm basing this on the "requirements.txt" file used to specify runtime dependencies, as shown below.
SUMMARY
ansible-lint
is complaining about attributewith_community.general.filetree
not being valid. However, it's in Ansible official documentation. cf examples.Am I missing something?
ISSUE TYPE
OS / ENVIRONMENT
Debian 12.6 in wsl2
pipx
pipx
STEPS TO REPRODUCE
DESIRED BEHAVIOR
ansible-lint
should not complain aboutwith_community.general.filetree
.ACTUAL BEHAVIOR