diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..0fe6576 --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,7 @@ +skip_list: + - role-name + - unnamed-task + - command-instead-of-shell + - no-changed-when + - no-handler + - yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 865235f..d51b44a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,17 +25,16 @@ repos: types: [file, yaml] entry: yamllint --strict -f parsable - repo: https://github.com/ansible/ansible-lint - rev: v4.3.5 + rev: v5.3.2 hooks: - id: ansible-lint - additional_dependencies: - - 'ansible<2.10' - files: \.(yaml|yml)$ - entry: >- - ansible-lint --force-color -v -x "ANSIBLE0006,ANSIBLE0007,ANSIBLE0010,ANSIBLE0012,ANSIBLE0013,ANSIBLE0016" --exclude zuul.d/ - # TODO(cloudnull): These codes were added to pass the lint check. - # Things found within roles.galaxy are external - # and not something maintained here. + always_run: true + pass_filenames: false + # do not add file filters here as ansible-lint does not give reliable + # results when called with individual files. + # https://github.com/ansible/ansible-lint/issues/611 + verbose: true + entry: env ANSIBLE_LIBRARY=library ansible-lint --force-color -p -v --exclude zuul.d/ - repo: https://github.com/openstack-dev/bashate.git rev: 0.6.0 hooks: