install.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. - when: not openshift.common.is_containerized | bool
  3. block:
  4. - name: Install Node package
  5. package:
  6. name: "{{ openshift_service_type }}-node{{ (openshift_pkg_version | default('')) | oo_image_tag_to_rpm_version(include_dash=True) }}"
  7. state: present
  8. register: result
  9. until: result is succeeded
  10. - name: Install sdn-ovs package
  11. package:
  12. name: "{{ openshift_service_type }}-sdn-ovs{{ (openshift_pkg_version | default('')) | oo_image_tag_to_rpm_version(include_dash=True) }}"
  13. state: present
  14. when:
  15. - openshift_node_use_openshift_sdn | bool
  16. register: result
  17. until: result is succeeded
  18. - name: Install conntrack-tools package
  19. package:
  20. name: "conntrack-tools"
  21. state: present
  22. register: result
  23. until: result is succeeded
  24. - when:
  25. - openshift.common.is_containerized | bool
  26. - not l_is_node_system_container | bool
  27. block:
  28. - name: Pre-pull node image when containerized
  29. command: >
  30. docker pull {{ openshift.node.node_image }}:{{ openshift_image_tag }}
  31. register: pull_result
  32. changed_when: "'Downloaded newer image' in pull_result.stdout"