This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Usage: parseansiblelog.py [OPTIONS] [HOSTNAME] LOGFILE | |
parse an Ansible json formatted log | |
required parameters: - HOSTNAME : hostname/IP as it appears in log i.e. | |
`192.169.1.70` to address task results from `"hosts": {"192.169.1.70": | |
{"_ansible_no_log": false`... - LOGFILE : log file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
see readme.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
import sys | |
import pdb | |
#################################### | |
def ppdb(e=None): | |
"""conditional debugging | |
use with: `if ppdb(): pdb.set_trace()` | |
""" | |
return ppdb.enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ********************************** | |
# configuration | |
# ********************************** | |
#param 1 value - if nothing is specified, which git branch to export | |
default_gitbranch='master' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import subprocess | |
import shutil | |
import pdb | |
import pprint | |
from subprocess import Popen, PIPE | |
from shlex import split |