ansible-lint

lint tool for Ansible playbooks

Install

All systems
curl cmd.cat/ansible-lint.sh
Debian Debian
apt-get install ansible-lint
Ubuntu
apt-get install ansible-lint
Arch Arch Linux
pacman -S ansible-lint
image/svg+xml Kali Linux
apt-get install ansible-lint
Fedora
dnf install ansible-lint
Windows (WSL2)
sudo apt-get update sudo apt-get install ansible-lint
OS X
brew install ansible-lint

ansible-lint

lint tool for Ansible playbooks

Ansible playbooks express configuration, deployment and orchestration in YAML format. They can describe a policy you want your remote systems to enforce, or a set of steps in a general IT process. ansible-lint checks Ansible playbooks for practices and behaviour that could potentially be improved.

python3-ansible-lint

Best practices checker for Ansible

python2-ansible-lint

Best practices checker for Ansible