summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks/install.yml
blob: a4a9c12376e43420fcd8c76492fe671f4c512a16 (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
---
- name: Install Node package, sdn-ovs, conntrack packages
  package:
    name: "{{ item.name }}"
    state: present
  register: result
  until: result is succeeded
  with_items:
  - name: "{{ openshift_service_type }}-node{{ (openshift_pkg_version | default('')) | lib_utils_oo_image_tag_to_rpm_version(include_dash=True) }}"
  - name: "{{ openshift_service_type }}-sdn-ovs{{ (openshift_pkg_version | default('')) | lib_utils_oo_image_tag_to_rpm_version(include_dash=True) }}"
    install: "{{ openshift_node_use_openshift_sdn | bool }}"
  - name: "conntrack-tools"
  when:
  - not openshift_is_containerized | bool
  - item['install'] | default(True) | bool

- when:
  - openshift_is_containerized | bool
  - not l_is_node_system_container | bool
  block:
  - name: Pre-pull node image when containerized
    command: >
      docker pull {{ osn_image }}:{{ openshift_image_tag }}
    register: pull_result
    changed_when: "'Downloaded newer image' in pull_result.stdout"