Skip to content

Instantly share code, notes, and snippets.

View dmsimard's full-sized avatar

David Moreau Simard dmsimard

View GitHub Profile
@dmsimard
dmsimard / ara_loop.yml
Created April 9, 2018 18:27
ara_loop
- name: Create many hosts
hosts: localhost
gather_facts: no
tasks:
- name: Add one host
add_host:
ansible_connection: local
hostname: "{{ item }}"
groups: many
with_sequence: start=0 end=1024 format=host%02x
@jctanner
jctanner / example.log
Last active February 12, 2018 20:07
findvar filter plugin
PLAYBOOK: site.yml *******************************************************************************
1 plays in site.yml
PLAY [all] ***************************************************************************************
META: ran handlers
TASK [debug] *************************************************************************************
task path: /home/jtanner/workspace/issues/AP-HOSTVAR_LOOKUP/site.yml:5
ok: [el6host] => {
"failed": false,
@sivel
sivel / go-build.sh
Last active September 28, 2023 18:40
Ansible Binary Golang Module
go build helloworld.go
GOOS=windows GOARCH=amd64 go build helloworld.go
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: