Problems provisioning a load balancer using the ec2_elb_lb module

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

`

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

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.

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.

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

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

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!