summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src/test/integration/oc_version.yml
blob: 52336d8da785b1ac4e3ef5a8663fdc819a9e1049 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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."