This file contains hidden or 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 | |
# -*- coding: utf-8 -*- | |
import os | |
import re | |
import subprocess | |
import sys | |
from ansible.callbacks import display, banner |
This file contains hidden or 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
# check for an update on a web-page, and email the user | |
import httplib | |
import sys | |
import pickle | |
from datetime import datetime | |
import smtplib | |
from email.mime.text import MIMEText | |
import yaml | |
def email_user(cur_data, email_from, email_to): |