I'm running the latest development version of ansible.
I'm getting an error: "TypeError: create_volume() takes at most 4 arguments 
(6 given)" when running the ec2_vol module (see below the full error 
message)

My action is defined as:
- local_action:
    module: ec2_vol
    instance: "{{item.id}}"
    volume_size: 100
    region: "{{ec2_region}}"
  with_items: ec2.instances


The error message:

failed: [localhost] => (item={'invocation': {'module_name': 'ec2', 
'module_args': ''}, u'instances': [{u'ramdisk': None,
'root_device_name': u'/dev/sda', u'placement': u'us-west-2b', 
u'private_dns_name': u'ip-172-31-39-63.us-west-2.compute.i
 u'0', u'image_id': u'ami-4ad14a7a', u'dns_name': 
u'ec2-54-201-185-125.us-west-2.compute.amazonaws.com', u'launch_time':
u'id': u'i-6a4bfb5c', u'public_ip': u'54.201.185.125', u'instance_type': 
u't1.micro', u'state': u'running', u'private_ip
': u'ansiblekeypair', u'public_dns_name': 
u'ec2-54-201-185-125.us-west-2.compute.amazonaws.com', u'root_device_type': 
u'
ervisor': u'xen', u'virtualization_type': u'paravirtual', u'architecture': 
u'x86_64'}], u'changed': True, u'instance_ids
instance_type': 't1.micro', 'tags': {'db': 'master', 'role': 'db', 'Name': 
'rvs_db_master', 'env': 'production'}}}) => {
ged": true, "instance_ids": ["i-6a4bfb5c"], "instances": 
[{"ami_launch_index": "0", "architecture": "x86_64", "dns_name"
2.compute.amazonaws.com", "hypervisor": "xen", "id": "i-6a4bfb5c", 
"image_id": "ami-4ad14a7a", "instance_type": "t1.micr
"key_name": "ansiblekeypair", "launch_time": "2013-12-25T13:03:58.000Z", 
"placement": "us-west-2b", "private_dns_name":
pute.internal", "private_ip": "172.31.39.63", "public_dns_name": 
"ec2-54-201-185-125.us-west-2.compute.amazonaws.com", "
"ramdisk": null, "root_device_name": "/dev/sda", "root_device_type": "ebs", 
"state": "running", "state_code": 16, "virtu
}], "invocation": {"module_args": "", "module_name": "ec2"}, "item": 
{"instance_type": "t1.micro", "tags": {"Name": "rvs
env": "production", "role": "db"}}}, "parsed": false}
invalid output was: Traceback (most recent call last):
  File "/root/.ansible/tmp/ansible-1387976656.58-22236162901157/ec2_vol", 
line 1324, in <module>
    main()
  File "/root/.ansible/tmp/ansible-1387976656.58-22236162901157/ec2_vol", 
line 207, in main
    volume = ec2.create_volume(volume_size, zone, None, volume_type, iops)
TypeError: create_volume() takes at most 4 arguments (6 given)

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to