We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ansible-lint cannot resolve FQCN for module ansible.builtin.include.
ansible.builtin.include
ansible-lint --version ansible-lint 6.18.0 using ansible-core:2.15.3 ansible-compat:4.1.6 ruamel-yaml:None ruamel-yaml-clib:None
Running ansible-lint against the following piece of code results in a violation of the rule fqcn[action-core].
ansible-lint
fqcn[action-core]
--- - name: Include playbook include: Linux.yml when: ansible_system == 'Linux'
Resolving the issue by using an FQCN (see documentation here) below results in the warning reported in this issue:
--- - name: Include playbook ansible.builtin.include: Linux.yml when: ansible_system == 'Linux'
Ansible-lint output:
WARNING Unable to resolve FQCN for module ansible.builtin.include
Ansible-lint configuration below.
--- # .ansible-lint profile: production exclude_paths: - collections parseable: true quiet: true strict: true verbosity: 1 var_naming_pattern: "^[a-z_][a-z0-9_]*$" use_default_rules: true skip_list: - role-name - deprecated-module - yaml[line-length] enable_list: - args - empty-string-compare # opt-in - no-log-password # opt-in - no-same-owner # opt-in - name[prefix] # opt-in - yaml offline: true
No warning is printed when FQCN is used.
ansible-lint roles/hl.timezone WARNING Unable to resolve FQCN for module ansible.builtin.include
The text was updated successfully, but these errors were encountered:
Improve module loading logic
94cb834
- move module loading code in utils module - mimic core behavior and fallback on legacy modules Fixes: #3696
2337f4a
e3c42bb
9b60765
ssbarnea
Successfully merging a pull request may close this issue.
Summary
Ansible-lint cannot resolve FQCN for module
ansible.builtin.include
.Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
Running
ansible-lint
against the following piece of code results in a violation of the rulefqcn[action-core]
.Resolving the issue by using an FQCN (see documentation here) below results in the warning reported in this issue:
Ansible-lint output:
Ansible-lint configuration below.
Desired Behavior
No warning is printed when FQCN is used.
Actual Behavior
ansible-lint roles/hl.timezone WARNING Unable to resolve FQCN for module ansible.builtin.include
The text was updated successfully, but these errors were encountered: