install.yml 1013 B

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