diff options
author | Matthew Fennell <matthew@fennell.dev> | 2024-01-07 13:10:12 +0000 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2024-01-07 13:10:12 +0000 |
commit | 7a75827b7c6cef7dfbb7bf9025561051eacc50b0 (patch) | |
tree | 0159ade7ea93f67c028e20e106cc6b3d2e14c994 /.precious.toml | |
parent | b718d05747d8f32bb5d427ccf23f84c70b288230 (diff) |
Replace yamllint with ansible-lint
ansible-lint uses yamllint under the hood, and also checks for many more
"logical" errors in the ansible config.
Diffstat (limited to '.precious.toml')
-rw-r--r-- | .precious.toml | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/.precious.toml b/.precious.toml index 89e21de..9727732 100644 --- a/.precious.toml +++ b/.precious.toml @@ -2,6 +2,14 @@ # # SPDX-License-Identifier: AGPL-3.0-only +[commands.ansiblelint] +cmd = ["ansible-lint", "-q"] +include = "*" +invoke = "once" +ok_exit_codes = [0] +path_args = "none" +type = "lint" + [commands.gitlint] cmd = ["gitlint"] include = "*" @@ -25,10 +33,3 @@ include = ["hooks/*"] lint_failure_exit_codes = [1] ok_exit_codes = [0] type = "lint" - -[commands.yamllint] -cmd = ["yamllint", "--strict"] -include = ["*.yaml"] -lint_failure_exit_codes = [1, 2] -ok_exit_codes = [0] -type = "lint" |