Help me understand what's going on here with ELB register/deregister

39 views
Skip to first unread message

atedja nm

unread,
Apr 8, 2015, 3:20:23 AM4/8/15
to ansible...@googlegroups.com
I am trying to understand the sample code here about ELB register/deregister instances:

http://docs.ansible.com/ec2_elb_module.html


  - name: Instance De-register
    local_action:
      module: ec2_elb
      instance_id: "{{ ansible_ec2_instance_id }}"
      state: 'absent'

  - name: Instance Register
    local_action:
      module: ec2_elb
      instance_id: "{{ ansible_ec2_instance_id }}"
      ec2_elbs: "{{ item }}"
      state: 'present'
    with_items: ec2_elbs


So what's going with ec2_elbs: "{{ item }}"  What is "item"?

What is with_items: ec2_elbs?  What does ec2_elbs?  I am trying to debug this by printing ec2_elbs, but it doesn't seem that it allows me to use debug with local_action.

James Cammarata

unread,
Apr 8, 2015, 11:48:10 AM4/8/15
to ansible...@googlegroups.com

James Cammarata
Director, Ansible Core Engineering
github: jimi-c

--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c98b35fc-4bc7-4d7b-ac9a-77f2c8e3ff83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages