build_elb_dict.yml 417 B

123456789101112
  1. ---
  2. - name: querying elb
  3. ec2_elb_facts:
  4. names: "{{ openshift_aws_elb_names | join(',') }}"
  5. region: "{{ openshift_aws_region }}"
  6. register: elb_res
  7. # lib_utils_oo_list_of_dict_to_dict_from_key is a custom filter in
  8. # roles/lib_utils/filters/oo_filters.py
  9. - name: set elb fact dictionary
  10. set_fact:
  11. l_openshift_aws_elb_facts: "{{ elb_res['elbs'] | lib_utils_oo_list_of_dict_to_dict_from_key('name')}}"