ansible-lint
ansible-lint checks playbooks for practices and behavior that could potentially be improved and can fix some of the most common ones for you
Static Ansible linting in Go: the 38 ansible-lint rules decidable from YAML alone, byte-for-byte pep8 output, no Ansible runtime.