Skip to content

Instantly share code, notes, and snippets.

@epicanthal
epicanthal / .gitignore
Last active April 11, 2017 03:02 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@epicanthal
epicanthal / ansible_task_downloads_ansible_cfg.yml
Last active October 13, 2018 17:48
Download ansible.cfg from Ansible project (not included via pip install)
- name: Download 'ansible.cfg' as it is not present when Ansible is installed via pip
# References:
# http://docs.ansible.com/ansible/latest/installation_guide/intro_configuration.html
# https://github.com/ansible/ansible/issues/18512
get_url:
url: https://raw.githubusercontent.com/ansible/ansible/devel/examples/ansible.cfg
dest: "{{ ansible_cfg_location }}ansible.cfg"
@epicanthal
epicanthal / ansible_csv_lookup.yml
Last active October 13, 2018 17:50
Ansible CSV Lookup
---
- name: serverlist
hosts: localhost
gather_facts: no
vars:
tasks:
- name: read in server from csv
@epicanthal
epicanthal / ACI_postman_collection_pre_request_script.js
Last active August 27, 2019 16:29
Postman Pre-request Script - Cisco ACI Login Token
// Postman Pre-request Script - ACI Login Token
// Add this script to your Cisco ACI Collection under the
// 'Pre-requests Script' tab. This will login and grab the
// token prior to every Postman request, so no more manually
// running a separate Postman request every 5 minutes to
// get the token.
// The script assumes at least an environment is configured with
// 1) var 'apic' = IP/DNS of the ACI APIC
// 2) var 'aci_username' = ACI APIC username (can be of the form 'apic:fallback\\admin')