Added task for linting Ansible code bases

This commit is contained in:
emo 2024-03-02 02:20:18 +01:00
parent b768252537
commit 1c1ca2759d
2 changed files with 3 additions and 1 deletions

View File

@ -176,7 +176,7 @@ task lint-yml
Use `ansible-lint` to verify good practices relevant to Ansible.
```
LC_ALL=C.UTF-8 ansible-lint .
task lint-ansible
```
## YAML code formatting

View File

@ -5,3 +5,5 @@ tasks:
cmds: [yamlfix .]
lint-yml:
cmds: [yamllint .]
lint-ansible:
cmds: [LC_ALL=C.UTF-8 ansible-lint .]