Closed tgdfool2 closed 3 years ago
Https://github.com/ansible-community/ansible-lint/pull/1170 should fix this issue. But just to be sure, can you describe a bit more how and where did you install ansible.netcommon collection?
Thanks for your feedback @tadeboro. Here is how and where ansible.netcommon
has been installed:
root@d8bcd70452a4:/work# cat collections/requirements.yml
---
collections:
- name: ansible.netcommon
root@d8bcd70452a4:/work# ansible-galaxy collection install -r collections/requirements.yml -p collections/
root@d8bcd70452a4:/work# find collections/ansible_collections/ansible/netcommon/ | head -3
collections/ansible_collections/ansible/netcommon/
collections/ansible_collections/ansible/netcommon/.gitignore
collections/ansible_collections/ansible/netcommon/meta
Basically, our collections are "locally installed" under the Playbook's collection path.
I'll try to use the pre-release of ansible-lint
in our CI infrastructure to confirm that the issue has been fixed in the meantime.
I did a short test with the v5.0.0a0
pre-release and I can confirm that everything looks fine.
Summary
While trying to
ansible-lint
one of our Playbooks, we are receiving a warning regarding "relative resource paths not supported during Jinja2 environment setup"Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
STEPS TO REPRODUCE
By using the following task as part of our Playbook:
ansible-lint
outputs the following warning:By removing the second part of the expression,
ansible-lint
does not complain anymore:But the initial code is working as expected, so we don't really understand the meaning of this warning.
Could you please give us some hints?
Thanks in advance!