This is a loop: http://docs.ansible.com/playbooks_loops.html
James Cammarata Director, Ansible Core Engineering github: jimi-c On Tue, Apr 7, 2015 at 9:25 PM, atedja nm <[email protected]> wrote: > 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. > > -- > 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/c98b35fc-4bc7-4d7b-ac9a-77f2c8e3ff83%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/c98b35fc-4bc7-4d7b-ac9a-77f2c8e3ff83%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAMFyvFjUD_Qe%3DeZ5MoODaO6csbhF%3D0bmKWYube65Y6OVPbcUrw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
