James, the docs say for subnet: "(added in Ansible 1.6)" and I don't see a
label for scheme.

Please be sure to file a github ticket or amend the documentation block in
the module if you think these are mislabelled.





On Fri, May 30, 2014 at 12:07 PM, James Martin <[email protected]> wrote:

> Iain,
>
> The subnet and scheme parameters are not available in ansible 1.6.1.
>  You'll need to run the development version of ansible available on github.
>  https://github.com/ansible/ansible.
>
> - James
>
>
> On Thursday, May 29, 2014 7:45:21 PM UTC-4, iain wright wrote:
>>
>> Hi folks,
>>
>> I'm trying to provision an ELB in a VPC, this is the play im attempting,
>> from the doc @ http://docs.ansible.com/ec2_elb_lb_module.html
>> ---
>> - hosts: localhost
>>   connection: local
>>   gather_facts: False
>>   vars_files:
>>   - group_vars/ec2
>>
>>   tasks:
>>   - name: Include the variables specific to the vpc
>>     include_vars: envs/{{ env| default("dev") }}
>>
>>   # Basic VPC provisioning example
>>   - local_action:
>>       module: ec2_elb_lb
>>       name: "test-vpc"
>>       zones:
>>       - us-west-1a
>>       scheme: internal
>>       state: present
>>       subnets:
>>         - subnet-04ee0161
>>       listeners:
>>         - protocol: http # options are http, https, ssl, tcp
>>           load_balancer_port: 80
>>           instance_port: 80
>>
>> First I get this:
>> TASK: [ec2_elb_lb] ******************************
>> ******************************
>> failed: [localhost] => {"failed": true}
>> msg: unsupported parameter for module: subnets
>>
>> FATAL: all hosts have already failed -- aborting
>>
>> So i commented subnets out and get:
>> TASK: [ec2_elb_lb] ******************************
>> ******************************
>> failed: [localhost] => {"failed": true}
>> msg: unsupported parameter for module: scheme
>>
>> FATAL: all hosts have already failed -- aborting
>>
>> Then I comment out scheme and get:
>> TASK: [ec2_elb_lb] ******************************
>> ******************************
>> failed: [localhost] => {"failed": true, "parsed": false}
>> invalid output was: Traceback (most recent call last):
>>   File "/home/iain/.ansible/tmp/ansible-tmp-1401406900.33-
>> 179061245380748/ec2_elb_lb", line 1872, in <module>
>>     main()
>>   File "/home/iain/.ansible/tmp/ansible-tmp-1401406900.33-
>> 179061245380748/ec2_elb_lb", line 495, in main
>>     region=region, **aws_connect_params)
>>   File "/home/iain/.ansible/tmp/ansible-tmp-1401406900.33-
>> 179061245380748/ec2_elb_lb", line 188, in __init__
>>     self.elb = self._get_elb()
>>   File "/home/iain/.ansible/tmp/ansible-tmp-1401406900.33-
>> 179061245380748/ec2_elb_lb", line 249, in _get_elb
>>     elbs = self.elb_conn.get_all_load_balancers()
>> AttributeError: 'NoneType' object has no attribute
>> 'get_all_load_balancers'
>>
>> FATAL: all hosts have already failed -- aborting
>>
>> Our vars/group vars files/variables are working well for provisioning ec2
>> instances
>>
>> iain@iain-P15xEMx:~/Desktop/ansible$ ansible --version
>> ansible 1.6.1
>>
>> Thanks!
>> -iain
>>
>  --
> 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].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/9738d7c6-68bd-4d01-9ef7-a459f5c7d0e6%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/9738d7c6-68bd-4d01-9ef7-a459f5c7d0e6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgxtvfY1-kLAZ6ALQ%3DR4oaH6fYfk1pV_apzYvfteGzYPng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to