-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ansible-lint with production profile (#2)
- Loading branch information
Showing
9 changed files
with
127 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# vim:ts=2:sw=2:et:ai:sts=2 | ||
--- | ||
profile: production | ||
skip_list: | ||
- no-handler # TODO: fix | ||
- name[casing] # TODO: fix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: ansible-lint | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- force_ci/ansible-lint/** # For development/debugging of the workflow. | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
lint: | ||
name: Ansible lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run ansible-lint | ||
uses: ansible/ansible-lint@v24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# vim:ts=2:sw=2:et:ai:sts=2 | ||
--- | ||
extends: default | ||
rules: | ||
comments: | ||
min-spaces-from-content: 1 # Required by ansible-lint | ||
comments-indentation: false # Required by ansible-lint | ||
document-start: disable | ||
line-length: | ||
max: 80 | ||
braces: | ||
min-spaces-inside: 0 # Required by ansible-lint | ||
max-spaces-inside: 1 # Required by ansible-lint | ||
octal-values: | ||
forbid-implicit-octal: true # Required by ansible-lint | ||
forbid-explicit-octal: true # Required by ansible-lint | ||
quoted-strings: | ||
quote-type: single | ||
required: only-when-needed | ||
extra-required: | ||
- ^[0-9:]+$ # IPv6 addresses containing only numbers 0-9 are misparsed | ||
extra-allowed: | ||
- ^\^ # regular expression |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
# vim:ts=2:sw=2:et:ai:sts=2 | ||
|
||
- include_tasks: remove.yml | ||
- ansible.builtin.include_tasks: remove.yml # noqa: name[missing] | ||
when: tinc__remove | ||
|
||
- include_tasks: setup.yml | ||
- ansible.builtin.include_tasks: setup.yml # noqa: name[missing] | ||
when: not tinc__remove |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.