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/e5ed6fc7-bc14-4fa3-b248-22344ce5dc37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.