upgrade_rpm_members.yml 488 B

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