Hi Cann,
What's the error message?
Cheers
On Monday, August 15, 2016 at 10:19:27 PM UTC+8, Cann wrote:
>
> Hello,
>
> I am new to Ansible and I couldn't figure out what is wrong with my
> ansible playbook.
> I simply want to list all instances associated with specific elastic load
> balancers and then de-register them all.
>
> Can you please take a look at it and tell me what am I doing wrong?
>
> ---
> - hosts: localhost
> tasks:
> - name: fetch
> ec2_elb_facts:
> names: jjbeans-prod
> region: us-west-2
> register: elb_facts
> - debug: var=elb_facts
>
>
> - name: De-register instances from ELB
> ec2_elb:
> instances_id: "{{ item.instances }}"
> region: us-west-2
> state: absent
> with_items: "{{ elb_facts.elbs }}"
>
>
>
--
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/20712832-3a4b-41a2-847b-c09c395b083d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.