install.yml 978 B

12345678910111213141516171819202122232425
  1. ---
  2. - name: Install Node package, sdn-ovs, conntrack packages
  3. package:
  4. name: "{{ item.name }}"
  5. state: present
  6. register: result
  7. until: result is succeeded
  8. with_items:
  9. - name: "{{ openshift_service_type }}-node{{ (openshift_pkg_version | default('')) | lib_utils_oo_image_tag_to_rpm_version(include_dash=True) }}"
  10. - name: "{{ openshift_service_type }}-sdn-ovs{{ (openshift_pkg_version | default('')) | lib_utils_oo_image_tag_to_rpm_version(include_dash=True) }}"
  11. install: "{{ openshift_node_use_openshift_sdn | bool }}"
  12. - name: "conntrack-tools"
  13. when:
  14. - not openshift_is_containerized | bool
  15. - item['install'] | default(True) | bool
  16. - when:
  17. - openshift_is_containerized | bool
  18. - not l_is_node_system_container | bool
  19. block:
  20. - name: Pre-pull node image when containerized
  21. command: >
  22. docker pull {{ osn_image }}:{{ openshift_image_tag }}
  23. register: pull_result
  24. changed_when: "'Downloaded newer image' in pull_result.stdout"