Skip to content

Commit

Permalink
Merge pull request sap-linuxlab#543 from berndfinger/issue-541
Browse files Browse the repository at this point in the history
sap_maintain_etc_hosts: Provide missing ansible-lint config files
  • Loading branch information
berndfinger authored Nov 28, 2023
2 parents f18b1fa + 1d300ca commit f1e9542
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/sap_maintain_etc_hosts/.ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
enable_list:
- yaml
skip_list:
- ignore-errors # We use ignore_errors for all the assert tasks, which should be acceptable
- schema # We want to allow single digit version numbers in a role's meta/main.yml file. This is allowed as per https://galaxy.ansible.com/docs/contributing/creating_role.html and https://galaxy.ansible.com/api/v1/platforms/?page=6.
- name[template] # Allow templating inside name. During dev and qa, it should be possible to identify cases where it doesn't work
21 changes: 21 additions & 0 deletions roles/sap_maintain_etc_hosts/.yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# Based on ansible-lint config
extends: default

rules:
braces: {max-spaces-inside: 1, level: error}
brackets: {max-spaces-inside: 1, level: error}
# colons: {max-spaces-after: -1, level: error}
# commas: {max-spaces-after: -1, level: error}
comments: disable
comments-indentation: disable
# document-start: disable
# empty-lines: {max: 3, level: error}
# hyphens: {level: error}
# indentation: disable
# key-duplicates: enable
line-length: disable
# new-line-at-end-of-file: disable
# new-lines: {type: unix}
# trailing-spaces: disable
truthy: disable

0 comments on commit f1e9542

Please sign in to comment.