Skip to content

Instantly share code, notes, and snippets.

@jamesfalkner
Created September 16, 2018 20:14
Show Gist options
  • Save jamesfalkner/149a20a5e426953bc8379afc8f7f61d9 to your computer and use it in GitHub Desktop.
Save jamesfalkner/149a20a5e426953bc8379afc8f7f61d9 to your computer and use it in GitHub Desktop.
---
- name: Install Apache HTTPD container
hosts: localhost
tasks:
- command: oc new-project webserver
- command: oc new-app httpd
- command: oc expose svc/httpd
- command: oc get route/httpd -n webserver -o jsonpath='{.spec.host}'
register: route
- debug: var=route
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment