Skip to content

Instantly share code, notes, and snippets.


David Moreau Simard dmsimard

View GitHub Profile
View ara_loop.yml
- name: Create many hosts
hosts: localhost
gather_facts: no
- name: Add one host
ansible_connection: local
hostname: "{{ item }}"
groups: many
with_sequence: start=0 end=1024 format=host%02x
jctanner / example.log
Last active Feb 12, 2018
findvar filter plugin
View example.log
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 /
Last active Oct 4, 2020
Ansible Binary Golang Module
go build helloworld.go
GOOS=windows GOARCH=amd64 go build helloworld.go
piscisaureus /
Created Aug 13, 2012
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 =

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:

You can’t perform that action at this time.