install.yml 887 B

123456789101112131415161718192021222324
  1. ---
  2. - name: Install node, clients, and 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 }}-clients{{ (openshift_pkg_version | default('')) | lib_utils_oo_image_tag_to_rpm_version(include_dash=True) }}"
  11. - name: "conntrack-tools"
  12. when:
  13. - not openshift_is_containerized | bool
  14. - item['install'] | default(True) | bool
  15. - when:
  16. - openshift_is_containerized | bool
  17. - not l_is_node_system_container | bool
  18. block:
  19. - name: Pre-pull node image when containerized
  20. command: >
  21. docker pull {{ osn_image }}
  22. register: pull_result
  23. changed_when: "'Downloaded newer image' in pull_result.stdout"