upgrade_rpm_members.yml 618 B

12345678910111213141516171819
  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
  12. vars:
  13. r_etcd_upgrade_version: "{{ etcd_upgrade_version }}"
  14. r_etcd_common_etcd_runtime: "host"
  15. etcd_peer: "{{ openshift.common.hostname }}"
  16. when:
  17. - etcd_rpm_version.stdout | default('99') | version_compare(etcd_upgrade_version, '<')
  18. - ansible_distribution == 'RedHat'
  19. - not openshift.common.is_containerized | bool