Skip to content

Commit 3f9c6b7

Browse files
committed
Exclude 'ansible/roles/compute_init/files/compute-init.yml' from ansible lint.
The parser can't load the 'tasks/tuned.yml' ansible so fails with: load-failure[filenotfounderror]: [Errno 2] No such file or directory: 'ansible-slurm-appliance/tasks/main.yml' tasks/main.yml:1 This failure can't be skipped beause it's the output of the parser that's fed to the linter where such exceptions are made.
1 parent 0c4dbdd commit 3f9c6b7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.ansible-lint.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ exclude_paths:
1616
- actionlint.yml
1717
- .ansible/
1818
- .github/
19-
# The following are files with syntax errors.
20-
# Rule 'syntax-check' is unskippable, you cannot use it in 'skip_list' or 'warn_list'. Still, you could exclude the file.
19+
# Rule 'syntax-check' is unskippable, you cannot use it in 'skip_list' or 'warn_list'.
20+
# It breaks the parser which takes place before the linter, the only option is to exclude the file.
2121
- ansible/roles/filebeat/tasks/runtime.yml
2222
- environments/common/files/filebeat/filebeat.yml
23+
# Rule 'load-failure[filenotfounderror]' is also unskippable
24+
- ansible/roles/compute_init/files/compute-init.yml

ansible/roles/compute_init/files/compute-init.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
when: enable_sshd
179179

180180
- name: Configure tuned
181-
ansible.builtin.include_tasks: ansible/roles/tuned/tasks/main.yml
181+
ansible.builtin.include_tasks: tasks/tuned.yml
182182
when: enable_tuned
183183

184184
- name: Configure sssd

0 commit comments

Comments
 (0)