0

When I run ansible-lint on my ansible content, I get the following result

WARNING  Listing 11 violation(s) that are fatal
download-monitoring-artifacts.yml:48: yaml: line too long (161 > 160 characters) (yaml[line-length])
download-monitoring-artifacts.yml:51: yaml: line too long (177 > 160 characters) (yaml[line-length])
download-monitoring-artifacts.yml:52: yaml: line too long (169 > 160 characters) (yaml[line-length])
download-monitoring-artifacts.yml:104: yaml: line too long (187 > 160 characters) (yaml[line-length])
roles/prometheus/defaults/main.yml:5: yaml: line too long (304 > 160 characters) (yaml[line-length])
roles/prometheus/defaults/main.yml:11: yaml: line too long (358 > 160 characters) (yaml[line-length])
roles/prometheus/tasks/main.yml:53: yaml: line too long (182 > 160 characters) (yaml[line-length])
roles/virusscan/tasks/main.yml:62: yaml: line too long (177 > 160 characters) (yaml[line-length])
roles/virusscan/tasks/main.yml:63: yaml: line too long (190 > 160 characters) (yaml[line-length])
setupMonitoring.yml:107: yaml: line too long (172 > 160 characters) (yaml[line-length])
setupMonitoring.yml:155: yaml: line too long (177 > 160 characters) (yaml[line-length])

Finished with 0 failure(s), 11 warning(s) on 156 files.

My problem is with the lines

WARNING  Listing 11 violation(s) that are fatal

and

Finished with 0 failure(s), 11 warning(s) on 156 files.

My Problem is that the first line sounded as if there are 11 serious problems and ansible-lint should fail. However since all 11 issues are only warnings ansible-lint will not fail.

This first line is very confusing and should be dropped. Although I think it would be a good idea to be able to see whether an issue is an error or an warning.

grafra
  • 411
  • 6
  • 16

0 Answers0