Skip to content

Find unused and undeclared Ansible variables.

Notifications You must be signed in to change notification settings

wrogrammer/clean-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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+.

About

Find unused and undeclared Ansible variables.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages