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/python3 | |
# running with no arguments will dump all the origins known by apt | |
# running with a list of package names as arguments will dump the sources for those packages and the known versions for those packages. | |
import os | |
import re | |
import string | |
import subprocess | |
import sys |
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
# Save as <folder with your playbook>/callback_plugins/<some name>.py | |
# Optionally use no_log: True on your playbook/roles/tasks to suppress other output | |
from __future__ import (absolute_import, division, print_function) | |
__metaclass__ = type | |
import os | |
import time | |
import json | |
import sys |