# Problems provisioning a load balancer using the ec2\_elb\_lb module

**URL:** <https://forum.ansible.com/t/problems-provisioning-a-load-balancer-using-the-ec2-elb-lb-module/15372>\
**Category:** Ansible Project\
**Created:** [May 29, 2014, 11:45pm UTC](https://forum.ansible.com/t/problems-provisioning-a-load-balancer-using-the-ec2-elb-lb-module/15372 "2014-05-29T23:45:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![iain\_wright](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@iain\_wright](https://forum.ansible.com/u/iain_wright)\
**Post date:** [May 29, 2014, 11:45pm UTC](https://forum.ansible.com/t/problems-provisioning-a-load-balancer-using-the-ec2-elb-lb-module/15372/1 "2014-05-29T23:45:21Z")

</div>

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](http://docs.ansible.com/ec2_elb_lb_module.html)

`

---

<div class="post-metadata">

**Author:** ![James\_Martin1](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@James\_Martin1](https://forum.ansible.com/u/James_Martin1)\
**Post date:** [May 30, 2014, 4:07pm UTC](https://forum.ansible.com/t/problems-provisioning-a-load-balancer-using-the-ec2-elb-lb-module/15372/2 "2014-05-30T16:07:50Z")

</div>

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](https://github.com/ansible/ansible).

- James

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [May 30, 2014, 4:24pm UTC](https://forum.ansible.com/t/problems-provisioning-a-load-balancer-using-the-ec2-elb-lb-module/15372/3 "2014-05-30T16:24:15Z")

</div>

Have you upgraded from 1.5.x by any chance? If so, how did you do it? It seems like your getting an old version of the module somehow.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [May 31, 2014, 4:22pm UTC](https://forum.ansible.com/t/problems-provisioning-a-load-balancer-using-the-ec2-elb-lb-module/15372/4 "2014-05-31T16:22:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![iain\_wright](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@iain\_wright](https://forum.ansible.com/u/iain_wright)\
**Post date:** [June 4, 2014, 7:25pm UTC](https://forum.ansible.com/t/problems-provisioning-a-load-balancer-using-the-ec2-elb-lb-module/15372/5 "2014-06-04T19:25:04Z")

</div>

Hi James,

I’ve just created a new python virtualenv and installed ansible:

`

iain@iain-P15xEMx:~/Desktop/ansible$ mkvirtualenv ansible  
(ansible)iain@iain-P15xEMx:~/Desktop/ansible$ pip install paramiko PyYAML jinja2 httplib2  
(ansible)iain@iain-P15xEMx:~/Desktop/ansible$ pip install ansible  
(ansible)iain@iain-P15xEMx:~/Desktop/ansible$ pip install boto

(ansible)iain@iain-P15xEMx:~/Desktop/ansible$ python -V  
Python 2.7.5+  
(ansible)iain@iain-P15xEMx:~/Desktop/ansible$ ansible --version  
ansible 1.6.2

`

And am still getting the same set of errors, starting with subnet:

`

(ansible)iain@iain-P15xEMx:~/Desktop/ansible$ ansible-playbook deploy\_elb.yml -e “env=prod”

PLAY [localhost] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK: [Include the variables specific to the vpc] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [localhost]

TASK: [ec2\_elb\_lb] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
failed: [localhost] =\> {“failed”: true}  
msg: unsupported parameter for module: subnets

FATAL: all hosts have already failed – aborting

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
to retry, use: --limit @/home/iain/deploy\_elb.retry

localhost : ok=1 changed=0 unreachable=0 failed=1

`

Is there a better method of install? Do i need to track the dev github branch or anything?

Thank you,  
iain

---

<div class="post-metadata">

**Author:** ![iain\_wright](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@iain\_wright](https://forum.ansible.com/u/iain_wright)\
**Post date:** [June 5, 2014, 1:29am UTC](https://forum.ansible.com/t/problems-provisioning-a-load-balancer-using-the-ec2-elb-lb-module/15372/6 "2014-06-05T01:29:02Z")

</div>

Just noticed subnets is in the devel branch but not the 1.6.2 in github, so looks like i just need to track dev for this!

Thank you,  
iain

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [June 5, 2014, 1:32am UTC](https://forum.ansible.com/t/problems-provisioning-a-load-balancer-using-the-ec2-elb-lb-module/15372/7 "2014-06-05T01:32:24Z")

</div>

Hi Iain, it does appear that this feature is included in the current development branch, so to use it you will need to clone the github repository and install it from that branch. We typically recommend users of the devel branch source the “hacking/env-setup” script, which makes it very simple to use.

I have updated the docs as well to reflect this.

Thanks!
