ansible/roles/osbs-on-openshift/tasks/yum_proxy.yml
Adam Miller a83b7a20c7 - Add osbs-on-openshift role
- update osbs-cluster gorup playbook
- fix inventory now that we're using osbs-control for deploy

Signed-off-by: Adam Miller <admiller@redhat.com>
2016-10-26 20:47:03 +00:00

36 lines
822 B
YAML

---
- name: copy yum proxy deployment config
template: src=openshift-yumproxy-dc.yml.j2 dest={{ osbs_openshift_home }}/yumproxy-dc.yml
register: yaml_dc
tags:
- oc
- yumproxy
- name: import yum proxy deployment config
command: >
oc replace
--force=true
--namespace={{ osbs_namespace }}
--filename={{ osbs_openshift_home }}/yumproxy-dc.yml
when: yaml_dc.changed
tags:
- oc
- yumproxy
- name: copy yum proxy service
template: src=openshift-yumproxy-svc.yml.j2 dest={{ osbs_openshift_home }}/yumproxy-svc.yml
register: yaml_svc
tags:
- oc
- yumproxy
- name: import yum proxy service
command: >
oc replace
--force=true
--namespace={{ osbs_namespace }}
--filename={{ osbs_openshift_home }}/yumproxy-svc.yml
when: yaml_svc.changed
tags:
- oc
- yumproxy