Added task for linting yml

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

View File

@ -170,7 +170,7 @@ cd test_linux_containers
Lint all YAML documents. Lint all YAML documents.
``` ```
yamllint . task lint-yml
``` ```
Use `ansible-lint` to verify good practices relevant to Ansible. Use `ansible-lint` to verify good practices relevant to Ansible.

View File

@ -3,3 +3,5 @@ version: '3'
tasks: tasks:
format-yml: format-yml:
cmds: [yamlfix .] cmds: [yamlfix .]
lint-yml:
cmds: [yamllint .]