upgrade_rpm_members.yml 582 B

123456789101112131415161718
  1. ---
  2. # INPUT etcd_upgrade_version
  3. # INPUT etcd_rpm_version
  4. # INPUT openshift.common.is_containerized
  5. - name: Upgrade to {{ etcd_upgrade_version }}
  6. hosts: oo_etcd_hosts_to_upgrade
  7. serial: 1
  8. tasks:
  9. - include_role:
  10. name: etcd
  11. tasks_from: upgrade_rpm.yml
  12. vars:
  13. r_etcd_upgrade_version: "{{ etcd_upgrade_version }}"
  14. etcd_peer: "{{ openshift.common.hostname }}"
  15. when:
  16. - etcd_rpm_version.stdout | default('99') is version_compare(etcd_upgrade_version, '<')
  17. - ansible_distribution == 'RedHat'
  18. - not openshift.common.is_containerized | bool