Skip to content

schnipdip/Bugspray

Repository files navigation

Codacy Badge Known Vulnerabilities

bugspray_img bugspray

Are you tired of having to clean up debugs when pushing development code to Ops/Production?

Bugspray allows you to mass remove debugs from your Ansible YAML files or you can selectively keep debugs in your code!

This is a personal project not affiliated with the Ansible Project

Requirements:

  1. argparse
  2. ruamel.yaml
  3. sys

Installation:

pip install -r .\requirements.txt

Or to update existing packages:

pip install -U -r .\requirements.txt

Example:

Process a single file with a exclusion:

python bugspray.py -i testcode.yml -e 'debug 1'

Process multiple files:

Note: If using batch processing, the location of the batch.txt file needs to be located within the same directory

python bugspray.py -L batch.txt

Process files with the No Operation flag:

python bugspray.py -i testcode.yml -n

Get Help:

python bugspray.py -h

Video and Gifs for extra help are located in the media/gifs or media/mp4 folders.

Special Thanks:

  • TrayKnots

About

Automate the removal of debugs! Spray those debugs (modules) away with Bugspray!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages