Force ansible-lint to check just this repository

Doing tox -e linterns on the undercloud gives the followig error:

Ansible-lint...............................................Failed
- hook id: ansible-lint
- exit code: 2
INFO     Executing syntax check on tripleo_ansible/playbooks/\
cli-baremetal-clean.yaml (0.77s)
WARNING  Listing 1 violation(s) that are fatal
../../../usr/share/ansible/roles/openstack-operations/tasks/\
restart_service.yml:1:3: syntax-check couldn't resolve module/action \
'service_map_facts'. This often indicates a misspelling, missing \
collection, or incorrect module path.
You can skip specific rules or tags by adding them to your \
configuration file:
warn_list:  # or 'skip_list' to silence them completely
  - syntax-check  # Ansible syntax check failed

Finished with 1 failure(s), 0 warning(s) on 1382 files.

This patch fixes this.

Closes-Bug: #1917938
Change-Id: Icf626c77db879f6654ed2c34004b8b67e23258ef
This commit is contained in:
Juan Badia Payno 2021-06-10 12:22:37 +02:00
parent c80f3a0017
commit cb2e3fb290
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
exclude_paths:
- releasenotes/
- ../
parseable: true
quiet: false
rulesdir: