LintPlaybook

Lint ansible-playbooks for logical pitfalls


Keywords
ansible, ansible-playbook, dry-run, lint, ansible-lint, interceptor
License
MIT
Install
pip install LintPlaybook==0.1.dev1

Documentation

Lint Playbook

A simple tool to check ansible-playbooks for logical consistencies. It uses Simple Interceptor to achieve this.

Setup

Using pip:

pip install LintPlaybook==0.1.dev1

From Source:

git clone https://github.com/host-anshu/lint-playbook
cd lint-playbook
# either
python setup.py install
# or, to install in development mode
python setup.py develop

Usage

lint-pbook <ansible-playbook options> ex_playbook.yml

Example

For cases when it encounters setup failures:

Setup Failure

Otherwise

Linter Output

Roadmap

Implement all of the rules here.

Implemented Rules

Rules that have been implemented(alpha stage) are:

  1. Undefined variable
  2. Unused variable
  3. Conflicting variable