Skip to content

Instantly share code, notes, and snippets.

Avatar

David Moreau Simard dmsimard

View GitHub Profile
View ara_loop.yml
- 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 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
sivel / go-build.sh
Last active Oct 4, 2020
Ansible Binary Golang Module
View go-build.sh
go build helloworld.go
GOOS=windows GOARCH=amd64 go build helloworld.go
@piscisaureus
piscisaureus / pr.md
Created Aug 13, 2012
Checkout github pull requests locally
View pr.md

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:

You can’t perform that action at this time.