diff --git a/README.md b/README.md index 4193fb8..8447005 100644 --- a/README.md +++ b/README.md @@ -173,6 +173,9 @@ Lint all YAML documents. task lint-yml ``` +Note that this task will trigger formatting of all YAML documents +in the repository as a prerequisite to linting. + Use `ansible-lint` to verify good practices relevant to Ansible. ``` diff --git a/Taskfile.yml b/Taskfile.yml index 1f15e45..12e2671 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -4,6 +4,7 @@ tasks: format-yml: cmds: [yamlfix .] lint-yml: + deps: [format-yml] cmds: [yamllint .] lint-ansible: deps: [lint-yml]