Skip to content

Instantly share code, notes, and snippets.

@jarv
Last active January 4, 2016 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarv/8653908 to your computer and use it in GitHub Desktop.
Save jarv/8653908 to your computer and use it in GitHub Desktop.
instance_tags:
environment: sandbox
github_username: jarv
Name: jarv-sandbox
...
- name: Launch ec2 instance
local_action:
module: ec2
keypair: "{{ keypair }}"
group: "{{ security_group }}"
instance_type: "{{ instance_type }}"
image: "{{ ami }}"
wait: true
region: "{{ region }}"
instance_tags: "{{instance_tags}}"
@thenayr
Copy link

thenayr commented Jan 27, 2014

failed: [localhost] => {"failed": true, "item": ""}
msg: this module requires key=value arguments (['image=ami-5cbddc6c', 'instance_type=c1.xlarge', 'key_name=platform-ansible', 'region=us-west-2', 'group=ansible', 'count=1', 'wait=true', 'instance_tags=', "{'environment': 'sandbox', 'Name': 'jarv-sandbox', 'github_username': 'jarv'}"])

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