summaryrefslogtreecommitdiffstats
path: root/playbooks/openshift-etcd/private/upgrade_image_members.yml
blob: d4386249e24cc7c26595a1e0f44cf9a2cae994fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
# INPUT etcd_upgrade_version
# INPUT etcd_container_version
# INPUT openshift_is_containerized
- name: Upgrade containerized hosts to {{ etcd_upgrade_version }}
  hosts: oo_etcd_hosts_to_upgrade
  serial: 1
  tasks:
  - include_role:
      name: etcd
      tasks_from: upgrade_image.yml
    vars:
      r_etcd_upgrade_version: "{{ etcd_upgrade_version }}"
      etcd_peer: "{{ openshift.common.hostname }}"
    when:
    - etcd_container_version | default('99') is version_compare(etcd_upgrade_version,'<')
    - openshift_is_containerized | bool