#!/usr/bin/ansible-playbook --module-path=../../../library/
# ./oc_version.yml -e "cli_master_test=$OPENSHIFT_MASTER
---
- hosts: "{{ cli_master_test }}"
  gather_facts: no
  user: root
  tasks:
  - name: Get openshift version
    oc_version:
    register: versionout

  - debug: var=versionout

  - assert:
      that:
      - "'oc_numeric' in versionout.results.keys()"
      msg: "Did not find 'oc_numeric' in version results."
