version.yml 802 B

123456789101112131415161718192021
  1. ---
  2. # NOTE: requires openshift_facts be run
  3. - name: Determine openshift_version to configure on first master
  4. hosts: oo_first_master
  5. roles:
  6. - openshift_version
  7. # NOTE: We set this even on etcd hosts as they may also later run as masters,
  8. # and we don't want to install wrong version of docker and have to downgrade
  9. # later.
  10. - name: Set openshift_version for etcd, node, and master hosts
  11. hosts: oo_etcd_to_config:oo_nodes_to_config:oo_masters_to_config:!oo_first_master
  12. vars:
  13. openshift_version: "{{ hostvars[groups.oo_first_master.0].openshift_version }}"
  14. pre_tasks:
  15. - set_fact:
  16. openshift_pkg_version: -{{ openshift_version }}
  17. when: openshift_pkg_version is not defined
  18. - debug: msg="openshift_pkg_version set to {{ openshift_pkg_version }}"
  19. roles:
  20. - openshift_version