Skip to content

Instantly share code, notes, and snippets.

@mattwillsher
Created March 22, 2013 21:25
Show Gist options
  • Save mattwillsher/5224874 to your computer and use it in GitHub Desktop.
Save mattwillsher/5224874 to your computer and use it in GitHub Desktop.
$ENV(HOME) => Array
---
- name: Setup Vagrant environment
hosts: 127.0.0.1
connection: local
vars:
- vagrantbox: CentOS-6.4-x86_64-v201303090
- vagrantdir: $ENV(HOME)/Development/ansible/$vagrantbox
tasks:
- name: Directory $vagrantdir
file: path=$vagrantdir
state=directory
- name: Vagrantfile
template: src=templates/Vagrantfile.j2
dest=$vagrantdir/Vagrantfile
@mattwillsher
Copy link
Author

matt@one: ~/Development/ansible/ansible-boxuk/playbooks/vagrant (dev_vagrant +$)
$ ls -ld '['
drwxr-xr-x  3 matt  staff  102 22 Mar 21:22 [

matt@one: ~/Development/ansible/ansible-boxuk/playbooks/vagrant (dev_vagrant +$)
$ ls -ld '['/*
drwxr-xr-x  3 matt  staff  102 22 Mar 21:22 [/Users

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment