Skip to content

Instantly share code, notes, and snippets.

View bretlinne's full-sized avatar

Bretonator bretlinne

View GitHub Profile
#! /usr/bin/env bash
LT_RED='\033[1;31m'
LT_GREEN='\033[1;32m'
YELLOW='\033[1;33m'
LT_BLUE='\033[1;36m'
NC='\033[0m' # NO COLOR
#DIR="${BASH_SOURCE%/*}"
@bretlinne
bretlinne / checkPorts
Last active December 7, 2018 20:09
checkPorts
#! /bin/bash
RED='\033[0;31m'
LIGHT_RED='\033[1;31m'
LIGHT_GREEN='\033[1;32m'
YELLOW='\033[1;33m'
BLUE='\033[1;36m'
NC='\033[0m' # NO COLOR
OPEN_PORT_FLAG=false
@bretlinne
bretlinne / ansible-vault.md
Created October 24, 2017 05:22 — forked from hvanderlaan/ansible-vault.md
Ansible-vault example

Ansible vault example

New in Ansible 1.5, “Vault” is a feature of ansible that allows keeping sensitive data such as passwords or keys in encrypted files, rather than as plaintext in your playbooks or roles. These vault files can then be distributed or placed in source control. To enable this feature, a command line tool, ansible-vault is used to edit files, and a command line flag –ask-vault-pass or –vault-password-file is used. Alternately, you may specify the location of a password file or command Ansible to always prompt for the password in your ansible.cfg file. These options require no command line flag usage.

Requirements

@bretlinne
bretlinne / ansible-summary.md
Created October 14, 2017 00:42 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of