Skip to content

Instantly share code, notes, and snippets.

View AnneTheAgile's full-sized avatar

AnneTheAgile

  • Fan of http://www.CodeTriage.com
View GitHub Profile
# Mac/64 version ansible 1.6.2
# https://binstar.org/annetheagile/ansible
# 2014-06-04Wed15:18:02
# 2014-07-08Tue12:18:42 Add- create new env info
# What is there now?
$ conda info -e
aws-boto-ansible ~/anaconda/envs/aws-boto-ansible
root * ~/anaconda
---
# FILE: talk-battle-ansi-config
# README: Prepare a mac 10.9 machine for running battleschool by ensuring a config file/folder exists.
# USAGE: $ ansible-playbook -i ansinv ansiboot.yml # Where ansinv= Your inventory file; ansiboot.yml= This script.
# PREREQ:
# $ curl -L THIS-URL > ~/.battleschool/config.yml # TIP-Bash-Curl: L: If location redirects, go there instead.
# $ ansible all -m ping # Test that the inventory file exists and ansible works with local host.
# $ ansible workstation -m ping -i ansinv # Test that the given inventory file contains 'workstation'.
# NEXT: $ battle --ask-sudo-pass --config-file=/Users/YOURUSER/.battleschool/config.yml # Config is created by this script.
# []TODO- Ansible-Battle; IDK why Tilde is not accepted to find path for config file - especially given it defaults ok.