Linter causes an error about collection import
Linter causes an error about collection import in main.yml file
main.yml:
---
- name: Playbook test_gitlab_install
hosts: all
gather_facts: true
tasks:
- name: Import mycompagny.general.test role
ansible.builtin.import_role:
name: mycompagny.general.test
Error:
main.yml:13:15: syntax-check[specific][/]: the role 'mycompagny.general.test' was not found in /builds/namespaceA/test_gitlab_install/roles:/builds/namespaceA/test_gitlab_install/.ansible/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/builds/namespaceA/test_gitlab_install
gitlab-ci job:
lint-check-job:
stage: check
image:
name: pipeline-components/ansible-lint:latest
script:
- ansible-lint --version
- ansible --version
- ansible-lint --profile production --force-color --parseable -c .config/ansible-lint/config.yml
I would like linter do not check import collections.
Edited by mikl_solo