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
- argparse
- ruamel.yaml
- sys
pip install -r .\requirements.txt
Or to update existing packages:
pip install -U -r .\requirements.txt
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.
- TrayKnots