elb_reg.yml 359 B

1234567891011
  1. ---
  2. - name: Register EC2 instances to ELB
  3. ec2_elb:
  4. ec2_elbs: "{{ l_elb.value.name }}"
  5. instance_id: "{{ item }}"
  6. region: "{{ openshift_aws_region }}"
  7. state: present
  8. wait: False
  9. register: test
  10. with_items: "{{ instancesout.instances | list | map(attribute='instance_id') | list }}"
  11. failed_when: "'InvalidInstanceID.NotFound' in test"