Skip to content
Find unused and undeclared Ansible variables.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
logos
README.md
clean-ansible.py
requirements.txt
tox.ini

README.md

Clean Ansible Logo


Contents


Links


Description

Clean Ansible is the tool to detect incorrect variables before the provisioning process with use Ansible automation tool.

The Ansible doesn’t have functionality to check variables before running deployment.


Features

  • find undefined Ansible variables

    clean-ansible is able to find undefined variables declared in Ansible: tasks, playbooks, and templates.

  • find redundant Ansible variables

    clean-ansible is able to show the repeated Ansible variables based on Ansible variables precedence.


Installation

To use clean-ansible run:

git clone https://github.com/wrogrammer/clean-ansible
pip3 install tox

and:

tox -e dvars to find redundant defaults variables

tox -e gvars to find redundant defaults variables


Examples


Questions / Help?

Feel free to contact me: wrogrammer@gmail.com


Bug reporting

Just open a Github issue.


Authors


Supported Python Versions

clean-ansible is supported on Python 3.4+.

You can’t perform that action at this time.