Updated ansible-lint to run via pre-commit only on ansible files.
Moved config file to its standard location, repository root, which
simplifies syncronization and usage.
Contains bumping ansible-lint to current version which also required
adding few more rule excludes. These excludes are going to be removed
one by one in follow-up changes. This gradual approach allow us to
improve code style without endless merge conflicts.
Config settings mostly based on those used by tripleo repos.
Bumping linters can now be done by running 'pre-commit autoupdate'.
Pro-commit always locks versions so there is no chance that a newer
linter (ansible-lint) would break CI.
Some documentation can be found at https://github.com/openstack/tripleo-quickstart/blob/master/doc/source/contributing.rst
and applies mostly to any project using pre-commit.
Co-Authored-By: Sorin Sbarnea <ssbarnea@redhat.com>
Change-Id: I05eb561c4e353b5fe0bc7c6d3ab2f8ea6c6ea2f4