Skip to content

Instantly share code, notes, and snippets.

@blocke
blocke / gist:6812723
Created October 3, 2013 16:28
Mockup of what a using a Cisco module for Ansible might look like:
---
- hosts: myciscoswitch
connection: cisco
user: adminuser
tasks:
- name: raw template (not idempotent)
cisco: action=raw src=foo.j2
@blocke
blocke / gist:6749194
Created September 29, 2013 03:49
Simple Ansible playbook for demonstrating spinning up a VM on DigitalOcean
# Invoke this twice:
# 1. Invoke with an inventory file containing nothing but 'localhost'
# 2. Invoke with digital_ocean.py inventory plugin as the inventory
# ansible-playbook -i localhost.inv equestria.yml && ansible-playbook -i digital_ocean.py equestria.yml
# Ansible 1.4 (github devel) required for unique_name option
- hosts: localhost