Skip to content

Instantly share code, notes, and snippets.

@bloopletech
Last active August 29, 2015 14:20
Show Gist options
  • Save bloopletech/f352afec31af666cdfe5 to your computer and use it in GitHub Desktop.
Save bloopletech/f352afec31af666cdfe5 to your computer and use it in GitHub Desktop.
---
- hosts: localhost
connection: local
gather_facts: False
tasks:
- name: Provision a blank Ubuntu 14.04 instance
ec2:
region="us-east-1"
key_name=buildkite_ansible
instance_type=c3.4xlarge
image="ami-d05e75b8"
wait=true
exact_count=1
register: ec2
- name: Add all instance public IPs to host group
add_host: hostname={{ item.public_ip }} groups=ec2hosts
with_items: ec2.instances
PLAY [localhost] **************************************************************
TASK: [Provision a blank Ubuntu 14.04 instance] *******************************
failed: [localhost] => {"failed": true, "parsed": false}
usage: ec2 [-h] [--list] [--host HOST] [--refresh-cache]
ec2: error: unrecognized arguments: /home/bloopletech/.ansible/tmp/ansible-tmp-1430895957.83-134023118515239/arguments
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/home/bloopletech/buildkite_pack.retry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment