Last active
August 29, 2015 14:20
-
-
Save bloopletech/f352afec31af666cdfe5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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