#!/usr/bin/ansible-playbook # ./route.yml -M ../../../library -e "cli_master_test=$OPENSHIFT_MASTER --- - hosts: "{{ cli_master_test }}" gather_facts: no user: root tasks: - name: create route oc_route: name: test namespace: test tls_termination: edge cert_content: testing cert cacert_content: testing cacert service_name: test host: test.example register: routeout - debug: var=routeout - name: get route oc_route: state: list name: test namespace: default register: routeout - debug: var=routeout - name: delete route oc_route: state: absent name: test namespace: default register: routeout - debug: var=routeout - name: create route oc_route: name: test namespace: test tls_termination: edge cert_content: testing cert cacert_content: testing cacert service_name: test host: test.example register: routeout - debug: var=routeout - name: create route noop oc_route: name: test namespace: test tls_termination: edge cert_content: testing cert cacert_content: testing cacert service_name: test host: test.example register: routeout - debug: var=routeout