Skip to content

Instantly share code, notes, and snippets.

@jlaska
jlaska / ge_double.yaml
Last active October 7, 2022 12:47 — forked from kpine/ge_double.yaml
GE/Jasco Double Tap Generic Blueprint
blueprint:
name: GE Switch Double Taps
description: Respond to double tap events from supported GE zwave_js switches.
domain: automation
input:
device:
name: Switch Device
description: A GE switch that supports double taps.
selector:
- hosts: localhost
vars:
instance_filters:
- "instance-state-name=running"
instance_excludes:
- "Tags[?Key=='Name' && contains(Value, 'releases.ansible.com')]"
- "Tags[?Key=='galaxy' && Value=='prod']"
uptime: 36
instance_regions:
- 'ap-northeast-1'
@jlaska
jlaska / .ansible.cfg
Last active March 4, 2019 20:15
Holiday Themed Ansible Cows
[defaults]
cow_selection = random
cow_whitelist = ansible_lights,ansible_reindeer,ansible_tree
COWPATH=$HOME/.cowsay ANSIBLE_COW_WHITELIST=reindeer,holiday_lights,holiday_tree ANSIBLE_COW_SELECTION=random ansible-playbook -i localhost, -c local happy_holidays.yml
________________________
< PLAY [Happy Holidays!] >
------------------------
.--._.--.---._.--.---._.--.---._.--.---._.-._.--._.--
_(A)_ _(A)_ _(A)_ _(A)_ _(A)_ _(A)_
[___] [___] [___] [___] [___] [___]
/:' \ /:' \ /:' \ /:' \ /:' \ /:' \
|:: | |:: | |:: | |:: | |:: | |:: |
@jlaska
jlaska / console.log
Created November 9, 2016 03:31
Starting ansible-tower vagrant box
# vagrant init ansible/tower
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
# vagrant up --provider virtualbox
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ansible/tower' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
@jlaska
jlaska / -
Created November 2, 2016 14:18
diff --git a/tools/ansible/templates/hubspot_ec2.html.j2 b/tools/ansible/templates/hubspot_ec2.html.j2
index d39251c..4f5bae9 100644
--- a/tools/ansible/templates/hubspot_ec2.html.j2
+++ b/tools/ansible/templates/hubspot_ec2.html.j2
@@ -28,6 +28,12 @@
<td><a href="https://console.aws.amazon.com/ec2/home?region=us-east-1#launchAmi={{ ec2_ami_kv['us-east-1'] }}">{{ ec2_ami_kv['us-east-1'] }}</a></td>
</tr>
<tr>
+<td>us-east-2</td>
+<td class="EC2extra">N. Virginia</td>
- hosts: all
vars:
repo_file: '/etc/apt/sources.list.d/ppa_jal233_proot_trusty.list'
tasks:
- name: 'Remove repo file'
file:
path: '{{ repo_file }}'
state: 'absent'
#!/usr/bin/env python
'''Script to pull data out of GitHub and push into Elasticsearch'''
import os
import sys
import requests
import httplib
import json # NOQA
from urlparse import urljoin
from uritemplate import expand

Keybase proof

I hereby claim:

  • I am jlaska on github.
  • I am jlaska (https://keybase.io/jlaska) on keybase.
  • I have a public key ASB1knHWrTozg4y9I7fwYR-VeIJQJ32k-VKI4n8qWgrCVAo

To claim this, I am signing this object:

---
- hosts: all
gather_facts: false
vars:
secret_value: "Something secret"
tasks:
- name: task with stdout
command: 'echo {{ secret_value }}'