summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks/install.yml
blob: 9bf4ed879eb04bfa8236ef3ab778fe2c508e61a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
# We have to add tuned-profiles in the same transaction otherwise we run into depsolving
# problems because the rpms don't pin the version properly. This was fixed in 3.1 packaging.
- when: not openshift.common.is_containerized | bool
  block:
  - name: Install Node package
    package:
      name: "{{ openshift.common.service_type }}-node{{ openshift_pkg_version | default('') | oo_image_tag_to_rpm_version(include_dash=True) }},tuned-profiles-{{ openshift.common.service_type }}-node{{ openshift_pkg_version | default('') | oo_image_tag_to_rpm_version(include_dash=True) }}"
      state: present

  - name: Install sdn-ovs package
    package:
      name: "{{ openshift.common.service_type }}-sdn-ovs{{ openshift_pkg_version | oo_image_tag_to_rpm_version(include_dash=True) }}"
      state: present
    when:
    - openshift.common.use_openshift_sdn | default(true) | bool

  - name: Install conntrack-tools package
    package:
      name: "conntrack-tools"
      state: present

- when:
  - openshift.common.is_containerized | bool
  - not openshift.common.is_node_system_container | bool
  block:
  - name: Pre-pull node image when containerized
    command: >
      docker pull {{ openshift.node.node_image }}:{{ openshift_image_tag }}
    register: pull_result
    changed_when: "'Downloaded newer image' in pull_result.stdout"

  - include: config/install-node-docker-service-file.yml