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
--- | |
# File: /etc/ansible/playbooks/prod/update_root_pw.yml | |
# Authors: bgstack15 | |
# Startdate: 2017-10-24 | |
# Title: Playbook that updates the local root password | |
# Purpose: Makes it easy to update the root password | |
# Usage: | |
# time ansible-playbook /etc/ansible/playbooks/prod/update_root_pw.yml -i /etc/ansible/dc3.inv -l el7test14 -v --ask-vault-pass | |
# Make file /home/ansible/rootpw.yml with the contents: | |
# --- |
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
convert_to_seq() { | |
printf "${@}" | xargs -n1 -d',' | tr '-' ' ' | awk 'NF == 2 { system("/bin/seq "$1" "$2); } NF != 2 { print $1; }' | xargs | |
} | |
convert_to_seq "$1" |
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/sh | |
# 2017-04-02 12:30 quick and dirty ls-leases | |
# sed combine lines: http://stackoverflow.com/a/7853846/3569534 | |
DEFAULT_LEASE_FILE=/var/lib/dhcpd/dhcpd.leases | |
leasefile="${DEFAULT_LEASE_FILE}" | |
#leasefile=/home/bgirton-local/foo | |
NewerOlder