diff options
author | Steve Milner <smilner@redhat.com> | 2017-02-08 10:30:20 -0500 |
---|---|---|
committer | Steve Milner <smilner@redhat.com> | 2017-02-14 09:37:57 -0500 |
commit | 34d35e84e249bb6b0d419b7db92986b309cb9572 (patch) | |
tree | 3bed2a6892de35020a4698009333ca2ff29883ee /roles/openshift_hosted/tasks | |
parent | 3921f01be97ccfbb54e11666ce3647774c3fdbb9 (diff) | |
download | openshift-34d35e84e249bb6b0d419b7db92986b309cb9572.tar.gz openshift-34d35e84e249bb6b0d419b7db92986b309cb9572.tar.bz2 openshift-34d35e84e249bb6b0d419b7db92986b309cb9572.tar.xz openshift-34d35e84e249bb6b0d419b7db92986b309cb9572.zip |
oc route commands now using the oc_route module
Diffstat (limited to 'roles/openshift_hosted/tasks')
-rw-r--r-- | roles/openshift_hosted/tasks/registry/secure.yml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/roles/openshift_hosted/tasks/registry/secure.yml b/roles/openshift_hosted/tasks/registry/secure.yml index 216a40874..fc3248eb9 100644 --- a/roles/openshift_hosted/tasks/registry/secure.yml +++ b/roles/openshift_hosted/tasks/registry/secure.yml @@ -1,13 +1,13 @@ --- - name: Create passthrough route for docker-registry - command: > - {{ openshift.common.client_binary }} create route passthrough - --service docker-registry - --config={{ openshift_hosted_kubeconfig }} - -n default - register: create_docker_registry_route - changed_when: "'already exists' not in create_docker_registry_route.stderr" - failed_when: "'already exists' not in create_docker_registry_route.stderr and create_docker_registry_route.rc != 0" + oc_route: + kubeconfig: "{{ openshift_hosted_kubeconfig }}" + name: docker-registry + namespace: default + service_name: docker-registry + state: present + tls_termination: passthrough + run_once: true - name: Determine if registry certificate must be created stat: |