Use ansible-lint to check playbooks

Registered by Mark Goddard

Use ansible-lint to check playbooks. Run it in CI.

https://docs.ansible.com/ansible-lint/

Ideally we could replace this: https://opendev.org/openstack/kolla-ansible/src/branch/master/tools/validate-all-file.py#L147

OSA uses Ansible-lint with some excludes: https://github.com/openstack/openstack-ansible/blob/198c6e05e93bff3823ebaa117f93f62eb0c29f0c/scripts/gate-check-commit.sh#L127

Mixed results with it in the past - it picks up a lot of 'issues', not so many actual issues - needs checking if not too cumbersome.

Blueprint information

Status:
Complete
Approver:
Mark Goddard
Priority:
Medium
Drafter:
Mark Goddard
Direction:
Needs approval
Assignee:
None
Definition:
Approved
Series goal:
Accepted for ussuri
Implementation:
Implemented
Milestone target:
milestone icon 10.0.0
Started by
Mark Goddard
Completed by
Mark Goddard

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.opendev.org/#/q/topic:local_action_fix

Addressed by: https://review.opendev.org/694959
    Change local_action to delegate_to: localhost

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.