How to Use: ansible-lint

Install

From package:

# Manjaro / Arch
sudo pacman -S ansible-lint

# Alpine
apk add --update ansible-lint

From Docker (no official image so use mine):

docker run --rm -it -v "$PWD":/work -w /work sdwolfz/ansible-lint:latest sh

Configure

Add a .ansible-lint file containing your rules:

---

skip_list:
  - yaml  # Violations reported by yamllint.

Use

ansible-lint roles/**/*