summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks/upgrade/rpm_upgrade.yml
blob: d4b47bb9e058d4ca35e1156363b7c563af644605 (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
---
# input variables:
# - openshift_service_type
# - component
# - openshift_pkg_version
# - openshift_is_atomic

# Pre-pull new node rpm, but don't install
- name: download new node packages
  command: "{{ ansible_pkg_mgr }} install -y --downloadonly {{ openshift_node_upgrade_rpm_list | join(' ')}}"
  register: result
  until: result is succeeded
  vars:
    openshift_node_upgrade_rpm_list:
      - "{{ openshift_service_type }}-node{{ openshift_pkg_version | default('') }}"
      - "PyYAML"
      - "dnsmasq"

# Pre-pull the rpms for openvswitch, but don't install
# openvswitch requires the latest version to be installed.
- name: download openvswitch upgrade rpm
  command: "{{ ansible_pkg_mgr }} update -y --downloadonly openvswitch"
  register: result
  until: result is succeeded