Enable yaml-lint Github action on push/pull-requests.

By running yamllint we add one more verification of quality to the
playbooks used on/provided by ansible-freeipa, that will be executed
on every push (even on forks) or pull-requests.

This patch provides the configuration needed to run yamllint on
the playbooks found in the `tests`, `playbooks` and `molecule`
directories, on every push or pull-request done on Github, using
ibiqlik/action-yamllint action version `v1`.

The current configuration for yamllint has many rules disable, so
the problems found can be fixed later. All rules after the comment
`# Disabled rules` should be enabled in the near future.
This commit is contained in:
Rafael Guterres Jeffman
2020-09-01 12:50:48 -03:00
parent b8398c4737
commit c05a7233ec
2 changed files with 32 additions and 0 deletions

View File

@@ -25,3 +25,7 @@ jobs:
env:
ANSIBLE_MODULE_UTILS: plugins/module_utils
ANSIBLE_LIBRARY: plugins/modules
- name: Run yaml-lint
uses: ibiqlik/action-yamllint@v1